aboutsummaryrefslogtreecommitdiffstats
path: root/public/js/wallet.js
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.js
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.js')
-rw-r--r--public/js/wallet.js12
1 files changed, 4 insertions, 8 deletions
diff --git a/public/js/wallet.js b/public/js/wallet.js
index 4a7778dd..6d880b82 100644
--- a/public/js/wallet.js
+++ b/public/js/wallet.js
@@ -7,7 +7,7 @@
g.proceed = false;
- g.api = 'https://api.blockcypher.com/v1/bcy/test';
+ g.api = 'https://api.blockcypher.com/v1/btc/main';
$(function() {
getToken();
@@ -44,9 +44,7 @@
});
return false;
});
- $('#withdrawal form input[type=button]').click(function() {
- return sendTransaction();
- });
+ $('#withdrawal form input[type=button]').click(sendTransaction);
$('#currency_toggle').click(function() {
var amount;
if ($(this).html() === g.user.unit) {
@@ -129,7 +127,7 @@
$('#new_password').parent().show();
return $('#new_password').effect('shake', 500).focus();
});
- return $('[data-hide]').on('click', function() {
+ return $('.close').on('click', function() {
return $(this).closest('.alert').fadeOut();
});
});
@@ -191,8 +189,6 @@
$('#balance').html(g.balance);
$('#fiat').html("" + fiat + " " + g.user.currency);
$('#amount').attr('max', g.balance);
- $('#amount').val(g.balance);
- $('#recipient').val('CAdJXbDTotrZt4DjC7oj9npQUZgKKMF5e3');
$('#amount').focus();
return $('.wallet').fadeIn();
});
@@ -281,7 +277,7 @@
$('#balance').html(g.balance);
$('#fiat').html("" + fiat + " " + g.user.currency);
$('#blockchain').off('click').on('click', function() {
- return window.open('https://live.blockcypher.com/bcy/tx/' + finaltx.tx.hash, '_blank');
+ return window.open('https://live.blockcypher.com/btc/main/' + finaltx.tx.hash, '_blank');
});
return dialog.close();
});