small bug fixes + enabled testnet via the #settings page

This commit is contained in:
OutCast3k 2016-07-28 22:36:27 +00:00
parent 284c6361e7
commit 67bd6e927c
4 changed files with 19 additions and 8 deletions

View file

@ -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;
}

View file

@ -971,7 +971,7 @@
<option value="bitcoin_mainnet" rel="0x00;0x80;0x05;0x488b21e;0x488ade4;coinb.in;coinb.in">Bitcoin (mainnet)</option>
<option value="litecoin_mainnet" rel="0x30;0xb0;0x05;0x019da462;0x019d9cfe;blockr.io_litecoin;chain.so_litecoin">Litecoin (mainnet)</option>
<option value="shadowcash_mainnet" rel="0x3f;0xbf;0x7d;0xee80286a;0xee8031e8;false;false">ShadowCash (mainnet)</option>
<!-- <option value="bitcoin_testnet" rel="0x6f;0xef;0xc4;0x043587cf;0x04358394;blockr.io_bitcointestnet;false">Bitcoin (testnet)</option> -->
<option value="bitcoin_testnet" rel="0x6f;0xef;0xc4;0x043587cf;0x04358394;false;false">Bitcoin (testnet)</option>
<option value="custom" rel="0x00;0x80;0x05;0x488b21e;0x488ade4;false;false">Custom</option>
</select>

View file

@ -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);
}

View file

@ -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