From 32a22e6ade26012a2a2bb338e3879a4db1de8c55 Mon Sep 17 00:00:00 2001 From: Satinder Grewal Date: Wed, 31 Aug 2016 22:25:12 +1200 Subject: [PATCH] wallet widgets bar codes code added --- assets/css/progress-bars.css | 5 +++ assets/scripts/coinwallets.js | 7 +++- assets/scripts/dashboard.js | 73 ++++++++++++++++++++++++++++------- 3 files changed, 71 insertions(+), 14 deletions(-) diff --git a/assets/css/progress-bars.css b/assets/css/progress-bars.css index 31e3a5d..47c9ca8 100755 --- a/assets/css/progress-bars.css +++ b/assets/css/progress-bars.css @@ -1,3 +1,8 @@ .example-wrap .contextual-progress { margin: 7px 0 36px; } + +.progress { + margin-bottom: 0px; + border-radius: 0px; +} \ No newline at end of file diff --git a/assets/scripts/coinwallets.js b/assets/scripts/coinwallets.js index 29cc639..b549cf2 100644 --- a/assets/scripts/coinwallets.js +++ b/assets/scripts/coinwallets.js @@ -232,9 +232,14 @@ function ExecuteSendCurrencyAPI() { var SendToAddrData = JSON.parse(data); console.log('== Data OutPut =='); console.log(SendToAddrData); + if ( SendToAddrData.error != 'couldnt create rawtx' ) { + var SendToAddrTxDataTitle = "Transaction Failed"; + } else { + var SendToAddrTxDataTitle = "Transaction Successful"; + } var SentToAddrTxData = "Transaction ID: "+SendToAddrData.result+""; bootbox.dialog({ - title: "Transaction Successful", + title: SendToAddrTxDataTitle, message: SentToAddrTxData }); if ( SendToAddrData.sendrawtransaction == 'success' ) { diff --git a/assets/scripts/dashboard.js b/assets/scripts/dashboard.js index b759edb..ccff0e9 100644 --- a/assets/scripts/dashboard.js +++ b/assets/scripts/dashboard.js @@ -115,7 +115,21 @@ var Dashboard = function() { walletDivContent += ''; walletDivContent += '