From 245f1e45089a11e4750b717b66b821fe3738c3f6 Mon Sep 17 00:00:00 2001 From: OutCast3k Date: Fri, 5 Dec 2014 13:00:19 +0000 Subject: [PATCH] you now have the option to clear or keep inputs when building a transaction --- index.html | 5 ++++- js/coinbin.js | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index b7fb8b5..784bda0 100644 --- a/index.html +++ b/index.html @@ -300,7 +300,10 @@ -

Enter a regular address or the redeem script to automatically load the inputs to build a transaction

+ +
+ +
diff --git a/js/coinbin.js b/js/coinbin.js index 2924f72..cf02ac1 100644 --- a/js/coinbin.js +++ b/js/coinbin.js @@ -405,7 +405,10 @@ $(document).ready(function() { var tx = coinjs.transaction(); tx.listUnspent(addr, function(data){ if(addr) { - $("#inputs .txidRemove, #inputs .txidClear").click(); + if($("#clearInputsOnLoad").is(":checked")){ + $("#inputs .txidRemove, #inputs .txidClear").click(); + } + $("#redeemFromAddress").removeClass('hidden').html(' Retrieved unspent inputs from address '+addr+''); $.each($(data).find("unspent").children(), function(i,o){