Browse Source

reverted some changes

master
Satinder Grewal 8 years ago
parent
commit
7e58f7ee74
  1. 12
      assets/scripts/kmd_wallet_dashboard.js

12
assets/scripts/kmd_wallet_dashboard.js

@ -289,7 +289,7 @@ function RunKMDInitFunctions() {
$('#extcoin-wallet').hide(); $('#extcoin-wallet').hide();
$('#extcoin-wallet-connection-alert').show(); $('#extcoin-wallet-connection-alert').show();
} }
if ( check1[0] == 'connected' ) { if ( check1[0] == 'connected' || check1[0] == 'activating' ) {
getTotalKMDBalance(); getTotalKMDBalance();
KMDfillTxHistoryT(); KMDfillTxHistoryT();
$('#extcoin-wallet').show(); $('#extcoin-wallet').show();
@ -1169,12 +1169,12 @@ function CheckIfConnected() {
var AjaxOutputData = JSON.parse(data); var AjaxOutputData = JSON.parse(data);
console.log('== Data OutPut =='); console.log('== Data OutPut ==');
console.log(AjaxOutputData.error); console.log(AjaxOutputData.error);
console.log(AjaxOutputData['error'].message); //console.log(AjaxOutputData['error'].message);
if ( AjaxOutputData.errors != undefined ) { if ( AjaxOutputData.errors != undefined ) {
//console.log('connected'); //console.log('connected');
result.push('connected'); result.push('connected');
} else if ( AjaxOutputData['error'].message = 'Activating best chain...' ) { //} else if ( AjaxOutputData['error'].message = 'Activating best chain...' ) {
result.push('activating'); //result.push('activating');
} else if ( AjaxOutputData.errors == undefined) { } else if ( AjaxOutputData.errors == undefined) {
result.push('not active'); result.push('not active');
} else { } else {
@ -1254,8 +1254,8 @@ function KMD_getInfo_rtrn() {
if ( AjaxOutputData.errors != undefined ) { if ( AjaxOutputData.errors != undefined ) {
//console.log('connected'); //console.log('connected');
result.push(AjaxOutputData); result.push(AjaxOutputData);
} else if ( AjaxOutputData['error'].message = 'Activating best chain...' ) { //} else if ( AjaxOutputData['error'].message = 'Activating best chain...' ) {
result.push('activating'); //result.push('activating');
} else if ( AjaxOutputData.errors == undefined) { } else if ( AjaxOutputData.errors == undefined) {
result.push('not active'); result.push('not active');
} else { } else {

Loading…
Cancel
Save