bug fix to blockcyphers broadcasting option, plus added a buy bitcoin button on the wallet page

This commit is contained in:
OutCast3k
2016-05-09 10:02:51 +00:00
parent 1e8773c195
commit 0154514309
3 changed files with 5 additions and 4 deletions
+2 -2
View File
@@ -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>');
}