File tree 1 file changed +4
-9
lines changed
1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -586,19 +586,20 @@ $(document).ready(function() {
586
586
}
587
587
else
588
588
{
589
-
590
589
$ . each ( $ ( "#inputs .row" ) , function ( i , o ) {
591
590
if ( $ ( this ) . next ( ) . length == 0 )
592
591
{
593
592
o . remove ( ) ;
594
593
return true ;
595
594
}
595
+ $ ( "input" , o ) . attr ( 'disabled' , $ ( "input" , $ ( this ) . next ( ) ) . prop ( 'disabled' ) ) ;
596
596
$ ( ".txId" , o ) . val ( $ ( ".txId" , $ ( this ) . next ( ) ) . val ( ) ) ;
597
597
$ ( ".txIdScript" , o ) . val ( $ ( ".txIdScript" , $ ( this ) . next ( ) ) . val ( ) ) ;
598
598
$ ( ".txIdN" , o ) . val ( $ ( ".txIdN" , $ ( this ) . next ( ) ) . val ( ) ) ;
599
599
$ ( ".txIdAmount" , o ) . val ( $ ( ".txIdAmount" , $ ( this ) . next ( ) ) . val ( ) ) ;
600
600
} ) ;
601
601
}
602
+
602
603
totalInputAmount ( ) ;
603
604
} ) ;
604
605
@@ -691,14 +692,8 @@ $(document).ready(function() {
691
692
}
692
693
693
694
if ( $ ( "#clearInputsOnLoad" ) . is ( ":checked" ) ) {
694
- $ . each ( $ ( "#inputs .row" ) , function ( i , o ) {
695
- if ( i > 0 )
696
- {
697
- o . remove ( ) ;
698
- return true ;
699
- }
700
- } ) ;
701
- $ ( "#inputs .txidRemove, #inputs .txidClear" ) . click ( ) ;
695
+ $ ( "#inputs .txidRemove" ) . click ( ) ;
696
+ $ ( "#inputs .txidClear" ) . click ( ) ;
702
697
}
703
698
704
699
$ ( "#redeemFromBtn" ) . html ( "Please wait, loading..." ) . attr ( 'disabled' , true ) ;
You can’t perform that action at this time.
0 commit comments