The clear existing inputs checkbox was not behaving properly. This fixes the issue

This commit is contained in:
OutCast3k 2014-12-15 00:24:31 +00:00
parent e0873c764d
commit 6664586568

View file

@ -419,6 +419,13 @@ $(document).ready(function() {
$("#redeemFromAddress").removeClass('hidden').html('<span class="glyphicon glyphicon-info-sign"></span> Retrieved unspent inputs from address <a href="https://btc.blockr.io/address/info/'+addr+'" target="_blank">'+addr+'</a>');
$.each($(data).find("unspent").children(), function(i,o){
if($("#inputs .txId:last").val()!=""){
$("#inputs .txidAdd").click();
}
$("#inputs .row:last input").attr('disabled',true);
var val = (($(o).find("value").text()*1)/100000000);
var txid = (($(o).find("tx_hash").text()).match(/.{1,2}/g).reverse()).join("")+'';
@ -430,12 +437,6 @@ $(document).ready(function() {
} else {
$("#inputs .txIdScript:last").val($(o).find("script").text());
}
$("#inputs .row:last input").attr('disabled',true);
if(i<($(data).find("unspent").children().length-1)){
$("#inputs .txidAdd").click();
}
});
}