diff options
| author | Adam Soltys <[email protected]> | 2014-09-01 17:13:51 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2014-09-01 17:13:51 -0700 |
| commit | 120efd8d820ee1c76ca4c9504292d8101e721711 (patch) | |
| tree | 8ac905e2fc8dd9657e082a9407853cf1d37966b1 /public | |
| parent | 9fa89028a9475bbd05534c20c6b49c5820900a25 (diff) | |
| download | coinos-server-120efd8d820ee1c76ca4c9504292d8101e721711.tar.gz coinos-server-120efd8d820ee1c76ca4c9504292d8101e721711.zip | |
Fix up transactions UI
Diffstat (limited to 'public')
| -rw-r--r-- | public/css/calculator.less | 2 | ||||
| -rw-r--r-- | public/js/calculator.coffee | 2 | ||||
| -rw-r--r-- | public/js/report.coffee | 6 |
3 files changed, 6 insertions, 4 deletions
diff --git a/public/css/calculator.less b/public/css/calculator.less index 6444c827..23b729d2 100644 --- a/public/css/calculator.less +++ b/public/css/calculator.less @@ -33,7 +33,7 @@ div.container-fluid { div#calculator { #exchange, #amount { width: 5em; } - span.btn { font-size: 16px; width: 100%; } + #received { font-size: 16px; width: 100%; } strong#total { font-size: 30px; } p#address { padding-top: 10px; } #title { display: none; } diff --git a/public/js/calculator.coffee b/public/js/calculator.coffee index fd5244c6..c4b5f6d3 100644 --- a/public/js/calculator.coffee +++ b/public/js/calculator.coffee @@ -41,6 +41,8 @@ $(-> $(this).val('') updateTotal() ) + + $('#received').click(-> window.location = "/#{g.user.username}/report") ) setup = -> 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') ) |
