at the risk of upsetting some users segwit addresses have now been enabled by default in the #wallet section, with the option to switch between legacy and segwit very easily.

This commit is contained in:
OutCast3k
2017-10-01 18:06:57 +00:00
parent c2ef949dd0
commit b1603821da
3 changed files with 33 additions and 6 deletions
+17 -1
View File
@@ -6,6 +6,8 @@ $(document).ready(function() {
var explorer_addr = "https://coinb.in/addr/"
var explorer_block = "https://coinb.in/block/"
var wallet_timer = false;
$("#openBtn").click(function(){
var email = $("#openEmail").val().toLowerCase();
if(email.match(/[\s\w\d]+@[\s\w\d]+/g)){
@@ -88,6 +90,19 @@ $(document).ready(function() {
$("#openLoginStatus").html("").hide();
});
$("#walletToSegWit").click(function(){
$("#walletToBtn").html('SegWit <span class="caret"></span>');
$("#walletSegwit")[0].checked = true;
$("#openBtn").click();
});
$("#walletToLegacy").click(function(){
$("#walletToBtn").html('Legacy <span class="caret"></span>');
$("#walletSegwit")[0].checked = false;
$("#openBtn").click();
});
$("#walletShowKeys").click(function(){
$("#walletKeys").removeClass("hidden");
$("#walletSpend").removeClass("hidden").addClass("hidden");
@@ -262,7 +277,8 @@ $(document).ready(function() {
}
function checkBalanceLoop(){
setTimeout(function(){
clearTimeout(wallet_timer);
wallet_timer = setTimeout(function(){
if($("#walletLoader").hasClass("hidden")){
walletBalance();
}