From 120efd8d820ee1c76ca4c9504292d8101e721711 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Mon, 1 Sep 2014 17:13:51 -0700 Subject: Fix up transactions UI --- public/js/report.coffee | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'public/js/report.coffee') diff --git a/public/js/report.coffee b/public/js/report.coffee index 7989c211..ed0cb232 100644 --- a/public/js/report.coffee +++ b/public/js/report.coffee @@ -86,7 +86,7 @@ display = (transactions) -> $('#modal').modal() $('#modal textarea').val('') - $('#modal .btn-primary').toggle(address?) + $('#modal .btn-primary').toggle(txid? and txid.length > 5) $('#modal .btn-danger').off().click(-> $('#yousure, #confirm').show() @@ -96,11 +96,11 @@ display = (transactions) -> $('#confirm .btn-danger').click(-> $.ajax(type: 'delete', url: "/#{$('#user').val()}/transactions/#{txid}") $('#modal').modal('hide') - row.remove() + row.fadeOut('slow') ) $('#modal .btn-primary').off().click(-> - window.open("https://blockchain.info/address/#{address}", '_blank') + window.open("https://blockchain.info/tx/#{txid}", '_blank') $('#modal').modal('hide') ) -- cgit v1.2.3