@@ -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
0 commit comments