From 6be4a920ab1a4104330492a4b37a5cf9df00629b Mon Sep 17 00:00:00 2001 From: satindergrewal Date: Sat, 25 Nov 2017 12:33:26 +1300 Subject: [PATCH] bootbox update for zeroconf deposit --- gui/js/simpledexactions.js | 27 +++++++++++++++++++++---- gui/js/zeroconf_weeks_select_options.js | 1 - 2 files changed, 23 insertions(+), 5 deletions(-) diff --git a/gui/js/simpledexactions.js b/gui/js/simpledexactions.js index d5c74b1..d70cd15 100644 --- a/gui/js/simpledexactions.js +++ b/gui/js/simpledexactions.js @@ -5155,10 +5155,29 @@ function ZeroConfDeposit(deposit_weeks, deposit_amount) { toastr.error(zconf_deposit_data.error, 'ZeroConf Notification'); } if (zconf_deposit_data.result == 'success') { - bootbox.alert(`Address: ${zconf_deposit_data.address}
- deposit: ${zconf_deposit_data.deposit}
- expiration: ${zconf_deposit_data.expiration}
- ` + zconf_deposit_data.txid + ``); + var zconf_depoit_bootbox = bootbox.dialog({ + title: 'ZeroConf security deposit sent!', + message: `Address: ${zconf_deposit_data.address}
+ deposit: ${zconf_deposit_data.deposit}
+ expiration: ${zconf_deposit_data.expiration}
+ ` + zconf_deposit_data.txid + ``, + closeButton: false, + size: 'medium', + buttons: { + cancel: { + label: "Close", + className: 'btn-default', + callback: function(){ + } + } + } + }) + zconf_depoit_bootbox.init(function(){ + $('.zconf_deposit_txid_bootbox').click(function(){ + console.log($(this).data()); + shell.openExternal('https://kmd.explorer.supernet.org/tx/'+$(this).data('txid')); + }); + }); getZeroConfDepositHistory(); } }).fail(function(jqXHR, textStatus, errorThrown) { diff --git a/gui/js/zeroconf_weeks_select_options.js b/gui/js/zeroconf_weeks_select_options.js index 8fc3e47..5b052d6 100644 --- a/gui/js/zeroconf_weeks_select_options.js +++ b/gui/js/zeroconf_weeks_select_options.js @@ -1,7 +1,6 @@ var zeroconf_weeks_select_options = ''; zeroconf_weeks_select_options = ` -