Add link to blockchain explorer for coinb.in (Bitcoin)
This commit is contained in:
parent
2aca9ab28d
commit
fcbf25eaec
1 changed files with 1 additions and 2 deletions
|
@ -1196,8 +1196,7 @@ $(document).ready(function() {
|
||||||
success: function(data) {
|
success: function(data) {
|
||||||
$("#rawTransactionStatus").html(unescape($(data).find("response").text()).replace(/\+/g,' ')).removeClass('hidden');
|
$("#rawTransactionStatus").html(unescape($(data).find("response").text()).replace(/\+/g,' ')).removeClass('hidden');
|
||||||
if($(data).find("result").text()==1){
|
if($(data).find("result").text()==1){
|
||||||
$("#rawTransactionStatus").addClass('alert-success').removeClass('alert-danger');
|
$("#rawTransactionStatus").addClass('alert-success').removeClass('alert-danger').removeClass("hidden").html(' Txid: ' + $(data).find("txid").text() + '<br> <a href="https://www.blockchain.com/btc/tx/' + $(data).find("txid").text() + '" target="_blank">View on Blockchain Explorer</a>');
|
||||||
$("#rawTransactionStatus").html('txid: '+$(data).find("txid").text());
|
|
||||||
} else {
|
} else {
|
||||||
$("#rawTransactionStatus").addClass('alert-danger').removeClass('alert-success').prepend('<span class="glyphicon glyphicon-exclamation-sign"></span> ');
|
$("#rawTransactionStatus").addClass('alert-danger').removeClass('alert-success').prepend('<span class="glyphicon glyphicon-exclamation-sign"></span> ');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue