added a donation button to the #newTransaction page

This commit is contained in:
OutCast3k
2017-03-13 21:12:06 +00:00
parent 1f9d9e97c2
commit 52b206c7d6
3 changed files with 30 additions and 3 deletions
+23
View File
@@ -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(){