mirror of
https://github.com/ok2/coinbin.git
synced 2026-05-09 18:15:23 +02:00
bug fix to blockcyphers broadcasting option, plus added a buy bitcoin button on the wallet page
This commit is contained in:
+2
-2
@@ -982,8 +982,8 @@ $(document).ready(function() {
|
||||
},
|
||||
success: function(data) {
|
||||
var obj = $.parseJSON(data.responseText);
|
||||
if(obj.hash){
|
||||
$("#rawTransactionStatus").addClass('alert-success').removeClass('alert-danger').removeClass("hidden").html(' Txid: '+obj.hash);
|
||||
if((obj.tx) && obj.tx.hash){
|
||||
$("#rawTransactionStatus").addClass('alert-success').removeClass('alert-danger').removeClass("hidden").html(' Txid: '+obj.tx.hash);
|
||||
} else {
|
||||
$("#rawTransactionStatus").addClass('alert-danger').removeClass('alert-success').removeClass("hidden").html(' Unexpected error, please try again').prepend('<span class="glyphicon glyphicon-exclamation-sign"></span>');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user