diff options
| author | Adam Soltys <[email protected]> | 2015-12-10 14:22:22 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2015-12-10 15:21:12 -0800 |
| commit | 52a2a9a0eb82548ef88df03d1c43650d374ac179 (patch) | |
| tree | 2504eee9f0841606364aebe99563d98db664fe0b /public/js/wallet.coffee | |
| parent | bcb889f59b461cf9aef82d6349a46f0941683a87 (diff) | |
| download | coinos-server-52a2a9a0eb82548ef88df03d1c43650d374ac179.tar.gz coinos-server-52a2a9a0eb82548ef88df03d1c43650d374ac179.zip | |
Move bower components and remove them from git
Diffstat (limited to 'public/js/wallet.coffee')
| -rw-r--r-- | public/js/wallet.coffee | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/public/js/wallet.coffee b/public/js/wallet.coffee index ee72acc4..b34aaae1 100644 --- a/public/js/wallet.coffee +++ b/public/js/wallet.coffee @@ -1,6 +1,6 @@ g = exports ? this g.proceed = false -g.api = 'https://api.blockcypher.com/v1/bcy/test' +g.api = 'https://api.blockcypher.com/v1/btc/main' $(-> getToken() @@ -39,9 +39,7 @@ $(-> return false ) - $('#withdrawal form input[type=button]').click(-> - sendTransaction() - ) + $('#withdrawal form input[type=button]').click(sendTransaction) $('#currency_toggle').click(-> if $(this).html() is g.user.unit @@ -126,9 +124,7 @@ $(-> $('#new_password').effect('shake', 500).focus() ) - $('[data-hide]').on('click', -> - $(this).closest('.alert').fadeOut(); - ) + $('.close').on('click', -> $(this).closest('.alert').fadeOut()) ) @@ -184,8 +180,6 @@ getBalance = -> $('#balance').html(g.balance) $('#fiat').html("#{fiat} #{g.user.currency}") $('#amount').attr('max', g.balance) - $('#amount').val(g.balance) - $('#recipient').val('CAdJXbDTotrZt4DjC7oj9npQUZgKKMF5e3') $('#amount').focus() $('.wallet').fadeIn() ) @@ -259,7 +253,7 @@ sendTransaction = -> fiat = balance.toFiat() $('#balance').html(g.balance) $('#fiat').html("#{fiat} #{g.user.currency}") - $('#blockchain').off('click').on('click', -> window.open('https://live.blockcypher.com/bcy/tx/' + finaltx.tx.hash, '_blank')) + $('#blockchain').off('click').on('click', -> window.open('https://live.blockcypher.com/btc/main/' + finaltx.tx.hash, '_blank')) dialog.close() ) ) |
