diff --git a/css/style.css b/css/style.css
index 9cebfa2..e719560 100644
--- a/css/style.css
+++ b/css/style.css
@@ -24,3 +24,11 @@ body {
background-color: #f5f5f5;
padding-top: 20px;
}
+
+.alert {
+ overflow: hidden;
+ -ms-text-overflow: ellipsis;
+ -o-text-overflow: ellipsis;
+ text-overflow: ellipsis;
+ display: block;
+}
diff --git a/index.html b/index.html
index 7892ad7..d9976ca 100644
--- a/index.html
+++ b/index.html
@@ -971,7 +971,7 @@
-
+
diff --git a/js/coinbin.js b/js/coinbin.js
index 7c7ffc4..8b8f0ee 100644
--- a/js/coinbin.js
+++ b/js/coinbin.js
@@ -99,17 +99,20 @@ $(document).ready(function() {
$.each($("#walletSpendTo .output"), function(i,o){
var addr = $('.addressTo',o);
var amount = $('.amount',o);
- total += amount.val()*1;
- tx.addoutput(addr.val(), amount.val()*1);
+ if(amount.val()*1>0){
+ total += amount.val()*1;
+ tx.addoutput(addr.val(), amount.val()*1);
+ }
});
thisbtn.attr('disabled',true);
tx.addUnspent($("#walletAddress").html(), function(data){
- var dvalue = data.value/100000000
+ var dvalue = (data.value/100000000).toFixed(8);
+ total = total.toFixed(8);
if(dvalue>=total){
var change = dvalue-total;
- if(change>0){
+ if((change*1)>0){
tx.addoutput($("#walletAddress").html(), change);
}
diff --git a/sha1sum b/sha1sum
index 0c4c15a..46edf81 100644
--- a/sha1sum
+++ b/sha1sum
@@ -1,8 +1,8 @@
----- Version 1.2 2016.06.08 ----
+---- Version 1.2 2016.07.28 ----
77e4519962e2f6a9fc93342137dbb31c33b76b04 ./js/aes.js
3a09a8fc0cfe828b57fc798d668234d0490ee1a6 ./js/bootstrap-datetimepicker.min.js
253711c6d825de55a8360552573be950da180614 ./js/bootstrap.min.js
-f4537ecc54ec0f199b86738c22b724e917361f32 ./js/coinbin.js
+3ab10e60a8e6e660a574360ab6808bb0a3cebf85 ./js/coinbin.js
1bb89d9fc4147b53a963009af3e28d7928497947 ./js/coin.js
988565bc2cb402d63ed5c5fd7ff47c4278efc2c5 ./js/collapse.js
9ba5ede3d7f9d4c8fd623395f196adfdcf7e970f ./js/crypto-min.js
@@ -30,4 +30,4 @@ de51a8494180a6db074af2dee2383f0a363c5b08 ./fonts/glyphicons-halflings-regular.s
278e49a86e634da6f2a02f3b47dd9d2a8f26210f ./fonts/glyphicons-halflings-regular.woff
44bc1850f570972267b169ae18f1cb06b611ffa2 ./fonts/glyphicons-halflings-regular.ttf
b4d3a33913a0877684909f7edf8b79bf9192b0a7 ./README.md
-52a93441529216ddce10d7f653e462ec06e058b9 ./index.html
+23d2a58eee85cb6f344d44aa5eb1b9acf8869610 ./index.html