mirror of
https://github.com/OutCast3k/coinbin.git
synced 2025-03-10 11:39:05 +01:00
The clear existing inputs checkbox was not behaving properly. This fixes the issue
This commit is contained in:
parent
e0873c764d
commit
6664586568
@ -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>');
|
$("#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){
|
$.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 val = (($(o).find("value").text()*1)/100000000);
|
||||||
var txid = (($(o).find("tx_hash").text()).match(/.{1,2}/g).reverse()).join("")+'';
|
var txid = (($(o).find("tx_hash").text()).match(/.{1,2}/g).reverse()).join("")+'';
|
||||||
|
|
||||||
@ -430,12 +437,6 @@ $(document).ready(function() {
|
|||||||
} else {
|
} else {
|
||||||
$("#inputs .txIdScript:last").val($(o).find("script").text());
|
$("#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();
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user