added a donation button to the #newTransaction page
This commit is contained in:
parent
1f9d9e97c2
commit
52b206c7d6
3 changed files with 30 additions and 3 deletions
|
@ -563,7 +563,11 @@
|
|||
<br>
|
||||
|
||||
<div class="tab-content">
|
||||
|
||||
<div class="tab-pane fade in active" id="txoutputs">
|
||||
|
||||
<span class="pull-right"><a href="javascript:;" id="donateTxBtn" class="btn btn-link"><span class="glyphicon glyphicon-heart"></span> Donate!</a></span>
|
||||
|
||||
<p>Enter the address and amount you wish to make a payment to.</p>
|
||||
<div class="row">
|
||||
<div class="col-xs-8">
|
||||
|
|
|
@ -592,6 +592,29 @@ $(document).ready(function() {
|
|||
totalInputAmount();
|
||||
});
|
||||
|
||||
$("#donateTxBtn").click(function(){
|
||||
|
||||
var exists = false;
|
||||
|
||||
$.each($("#recipients .address"), function(i,o){
|
||||
if($(o).val() == coinjs.developer){
|
||||
exists = true;
|
||||
$(o).fadeOut().fadeIn();
|
||||
return true;
|
||||
}
|
||||
});
|
||||
|
||||
if(!exists){
|
||||
if($("#recipients .recipient:last .address:last").val() != ""){
|
||||
$("#recipients .addressAddTo:first").click();
|
||||
};
|
||||
|
||||
$("#recipients .recipient:last .address:last").val(coinjs.developer).fadeOut().fadeIn();
|
||||
|
||||
return true;
|
||||
}
|
||||
});
|
||||
|
||||
/* code for the qr code scanner */
|
||||
|
||||
$(".qrcodeScanner").click(function(){
|
||||
|
|
6
sha1sum
6
sha1sum
|
@ -1,8 +1,8 @@
|
|||
---- Version 1.2 2017.02.17 ----
|
||||
---- Version 1.2 2017.03.13 ----
|
||||
77e4519962e2f6a9fc93342137dbb31c33b76b04 ./js/aes.js
|
||||
3a09a8fc0cfe828b57fc798d668234d0490ee1a6 ./js/bootstrap-datetimepicker.min.js
|
||||
253711c6d825de55a8360552573be950da180614 ./js/bootstrap.min.js
|
||||
0ee30f1dc9e38c62e99022e185706969ccfd14f1 ./js/coinbin.js
|
||||
00aaf959783209cd348a746542b3e32bcdf333e3 ./js/coinbin.js
|
||||
f23a41e5bf56b98790c68502feae569459a60341 ./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
|
||||
3b0c0def7addfffad28a8d83f6a279ca7ceff5f7 ./index.html
|
||||
cfc16c16343e858c4dfc40ed699a933576dc3b55 ./index.html
|
||||
|
|
Loading…
Reference in a new issue