Skip to content

Commit ed7d5d6

Browse files
committed
small bugfix so that the #wallet inputs/outputs are properly set on the #fees page
1 parent 10e083b commit ed7d5d6

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

js/coinbin.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -677,21 +677,21 @@ $(document).ready(function() {
677677
var inputs = $(data).find("unspent").children().length;
678678
if($("#walletSegwit").is(":checked")){
679679
$("#fees .txi_segwit").val(inputs);
680-
$("#fees .txi_segwit").change();
680+
$("#fees .txi_segwit").trigger('input');
681681
} else {
682682
$("#fees .txi_regular").val(inputs);
683-
$("#fees .txi_regular").change();
683+
$("#fees .txi_regular").trigger('input');
684684
}
685685

686686
$.each($("#walletSpendTo .output"), function(i,o){
687687
var addr = $('.addressTo',o);
688688
var ad = coinjs.addressDecode(addr.val());
689689
if (ad.version == coinjs.multisig){ // p2sh
690690
$("#fees .txo_p2sh").val(($("#fees .txo_p2sh").val()*1)+1);
691-
$("#fees .txo_p2sh").change();
691+
$("#fees .txo_p2sh").trigger('input');
692692
} else { // p2pkh
693693
$("#fees .txo_p2pkh").val(($("#fees .txo_p2pkh").val()*1)+1);
694-
$("#fees .txo_p2pkh").change();
694+
$("#fees .txo_p2pkh").trigger('input');
695695
}
696696
});
697697

@@ -700,10 +700,10 @@ $(document).ready(function() {
700700
var ad = coinjs.addressDecode(addr);
701701
if (ad.version == coinjs.multisig){ // p2sh
702702
$("#fees .txo_p2sh").val(($("#fees .txo_p2sh").val()*1)+1);
703-
$("#fees .txo_p2sh").change();
703+
$("#fees .txo_p2sh").trigger('input');
704704
} else { // p2pkh
705705
$("#fees .txo_p2pkh").val(($("#fees .txo_p2pkh").val()*1)+1);
706-
$("#fees .txo_p2pkh").change();
706+
$("#fees .txo_p2pkh").trigger('input');
707707
}
708708
}
709709

sha1sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
---- Version 1.3 2018.01.03 ---
1+
---- Version 1.3 2018.01.04 ---
22
77e4519962e2f6a9fc93342137dbb31c33b76b04 ./js/aes.js
33
3a09a8fc0cfe828b57fc798d668234d0490ee1a6 ./js/bootstrap-datetimepicker.min.js
44
253711c6d825de55a8360552573be950da180614 ./js/bootstrap.min.js
5-
f43691b7db457598283d3b146f8b8545b2aa21a1 ./js/coinbin.js
5+
c23f25f218ed8a05376c2f7d98d7056ee9738c74 ./js/coinbin.js
66
31fbebf65d9cae8f26761cb057c4fb1b97339d08 ./js/coin.js
77
988565bc2cb402d63ed5c5fd7ff47c4278efc2c5 ./js/collapse.js
88
9ba5ede3d7f9d4c8fd623395f196adfdcf7e970f ./js/crypto-min.js

0 commit comments

Comments
 (0)