Skip to content

Commit ac333b8

Browse files
author
schnibble
committed
disabled-attribute for inputs on the transaction tab is fixed
1 parent 1c75ceb commit ac333b8

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

js/coinbin.js

+4-9
Original file line numberDiff line numberDiff line change
@@ -586,19 +586,20 @@ $(document).ready(function() {
586586
}
587587
else
588588
{
589-
590589
$.each($("#inputs .row"), function(i,o){
591590
if ($(this).next().length == 0)
592591
{
593592
o.remove();
594593
return true;
595594
}
595+
$("input",o).attr('disabled',$("input",$(this).next()).prop('disabled'));
596596
$(".txId",o).val($(".txId",$(this).next()).val());
597597
$(".txIdScript",o).val($(".txIdScript",$(this).next()).val());
598598
$(".txIdN",o).val($(".txIdN",$(this).next()).val());
599599
$(".txIdAmount",o).val($(".txIdAmount",$(this).next()).val());
600600
});
601601
}
602+
602603
totalInputAmount();
603604
});
604605

@@ -691,14 +692,8 @@ $(document).ready(function() {
691692
}
692693

693694
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();
702697
}
703698

704699
$("#redeemFromBtn").html("Please wait, loading...").attr('disabled',true);

0 commit comments

Comments
 (0)