removed auto reload wallet feature. users must click or interact with the page. attempt to save on bandwidth.
This commit is contained in:
parent
35de4228d8
commit
06cf50abb3
2 changed files with 15 additions and 24 deletions
|
@ -65,7 +65,6 @@ $(document).ready(function() {
|
||||||
$("#openWallet").removeClass("hidden").show();
|
$("#openWallet").removeClass("hidden").show();
|
||||||
|
|
||||||
walletBalance();
|
walletBalance();
|
||||||
checkBalanceLoop();
|
|
||||||
} else {
|
} else {
|
||||||
$("#openLoginStatus").html("Your passwords do not match!").removeClass("hidden").fadeOut().fadeIn();
|
$("#openLoginStatus").html("Your passwords do not match!").removeClass("hidden").fadeOut().fadeIn();
|
||||||
}
|
}
|
||||||
|
@ -133,7 +132,7 @@ $(document).ready(function() {
|
||||||
$("#walletSpend").removeClass("hidden").addClass("hidden");
|
$("#walletSpend").removeClass("hidden").addClass("hidden");
|
||||||
});
|
});
|
||||||
|
|
||||||
$("#walletBalance").click(function(){
|
$("#walletBalance, #walletAddress, #walletQrCode").click(function(){
|
||||||
walletBalance();
|
walletBalance();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -297,6 +296,7 @@ $(document).ready(function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
function walletBalance(){
|
function walletBalance(){
|
||||||
|
if($("#walletLoader").hasClass("hidden")){
|
||||||
var tx = coinjs.transaction();
|
var tx = coinjs.transaction();
|
||||||
$("#walletLoader").removeClass("hidden");
|
$("#walletLoader").removeClass("hidden");
|
||||||
coinjs.addressBalance($("#walletAddress").html(),function(data){
|
coinjs.addressBalance($("#walletAddress").html(),function(data){
|
||||||
|
@ -310,15 +310,6 @@ $(document).ready(function() {
|
||||||
$("#walletLoader").addClass("hidden");
|
$("#walletLoader").addClass("hidden");
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function checkBalanceLoop(){
|
|
||||||
clearTimeout(wallet_timer);
|
|
||||||
wallet_timer = setTimeout(function(){
|
|
||||||
if($("#walletLoader").hasClass("hidden")){
|
|
||||||
walletBalance();
|
|
||||||
}
|
|
||||||
checkBalanceLoop();
|
|
||||||
},45000);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* new -> address code */
|
/* new -> address code */
|
||||||
|
|
4
sha1sum
4
sha1sum
|
@ -1,8 +1,8 @@
|
||||||
---- Version 1.5 2020.04.22 ----
|
---- Version 1.5 2020.06.03 ----
|
||||||
77e4519962e2f6a9fc93342137dbb31c33b76b04 ./js/aes.js
|
77e4519962e2f6a9fc93342137dbb31c33b76b04 ./js/aes.js
|
||||||
3a09a8fc0cfe828b57fc798d668234d0490ee1a6 ./js/bootstrap-datetimepicker.min.js
|
3a09a8fc0cfe828b57fc798d668234d0490ee1a6 ./js/bootstrap-datetimepicker.min.js
|
||||||
253711c6d825de55a8360552573be950da180614 ./js/bootstrap.min.js
|
253711c6d825de55a8360552573be950da180614 ./js/bootstrap.min.js
|
||||||
17cc6a56ee601fbe3858563f26232f64ce12abcb ./js/coinbin.js
|
7708a3771dd2749807f2bfc41af407b68888ae5d ./js/coinbin.js
|
||||||
101544b32de9b5637edd38ea0da462bb25bab29a ./js/coin.js
|
101544b32de9b5637edd38ea0da462bb25bab29a ./js/coin.js
|
||||||
988565bc2cb402d63ed5c5fd7ff47c4278efc2c5 ./js/collapse.js
|
988565bc2cb402d63ed5c5fd7ff47c4278efc2c5 ./js/collapse.js
|
||||||
9ba5ede3d7f9d4c8fd623395f196adfdcf7e970f ./js/crypto-min.js
|
9ba5ede3d7f9d4c8fd623395f196adfdcf7e970f ./js/crypto-min.js
|
||||||
|
|
Loading…
Reference in a new issue