aboutsummaryrefslogtreecommitdiffstats
path: root/public/js/wallet.coffee
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2015-12-10 14:22:22 -0800
committerAdam Soltys <[email protected]>2015-12-10 15:21:12 -0800
commit52a2a9a0eb82548ef88df03d1c43650d374ac179 (patch)
tree2504eee9f0841606364aebe99563d98db664fe0b /public/js/wallet.coffee
parentbcb889f59b461cf9aef82d6349a46f0941683a87 (diff)
downloadcoinos-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.coffee14
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()
)
)