diff --git a/index.html b/index.html
index b740408..72ea534 100644
--- a/index.html
+++ b/index.html
@@ -289,15 +289,32 @@
-
-
-
-
+
+
+
Advanced Options
+
+
+
+
+
+
+
+
+
+
+
+
The locktime indicates the earliest time a transaction can be added to the block chain.
+
+
+
+
+
+
- Outputs (0.0000)
- Inputs (0.0000)
diff --git a/js/coin.js b/js/coin.js
index 470247b..0747e36 100644
--- a/js/coin.js
+++ b/js/coin.js
@@ -711,7 +711,7 @@
});
}
- obj.locktime = readAsInt(4);
+ obj.lock_time = readAsInt(4);
return obj;
}
diff --git a/js/coinbin.js b/js/coinbin.js
index 3ac3da9..7f77b92 100644
--- a/js/coinbin.js
+++ b/js/coinbin.js
@@ -349,6 +349,12 @@ $(document).ready(function() {
$("#transactionBtn").click(function(){
var tx = coinjs.transaction();
+
+ if(($("#nLockTime").val()).match(/^[0-9]+$/g)){
+ tx.lock_time = $("#nLockTime").val()*1;
+ }
+
+
$.each($("#inputs .row"), function(i,o){
if($(".txId",o).val()!="" && $(".txIdN",o).val()!=""){
tx.addinput($(".txId",o).val(), $(".txIdN",o).val(), $(".txIdScript",o).val());
@@ -486,6 +492,16 @@ $(document).ready(function() {
$("#transactionFee").val((fee>0)?fee:'0.00');
}
+ $("#optionsCollapse").click(function(){
+ if($("#optionsAdvanced").hasClass('hidden')){
+ $("#glyphcollapse").removeClass('glyphicon-collapse-down').addClass('glyphicon-collapse-up');
+ $("#optionsAdvanced").removeClass("hidden");
+ } else {
+ $("#glyphcollapse").removeClass('glyphicon-collapse-up').addClass('glyphicon-collapse-down');
+ $("#optionsAdvanced").addClass("hidden");
+ }
+ });
+
/* broadcast a transaction */
$("#rawSubmitBtn").click(function(){
@@ -543,6 +559,7 @@ $(document).ready(function() {
var tx = coinjs.transaction();
try {
var decode = tx.deserialize($("#verifyScript").val());
+ // console.log(decode);
$("#verifyTransactionData .transactionVersion").html(decode['version']);
$("#verifyTransactionData .transactionSize").html(decode.size()+' bytes');
$("#verifyTransactionData .transactionLockTime").html(decode['lock_time']);