mirror of
https://github.com/OutCast3k/coinbin.git
synced 2026-10-03 02:21:06 +02:00
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:
1 parent
c2ef949dd0
commit
b1603821da
3 files changed
+33
-6
No files matched your search
+17
-1
@@ -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();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user