|
|
@ -168,7 +168,7 @@ function CheckIfWalletEncrypted() { |
|
|
|
return result; |
|
|
|
} |
|
|
|
|
|
|
|
function KMD_getInfo_rtrn() { |
|
|
|
function KMD_getInfo_rtrn(cb) { |
|
|
|
var result = [], |
|
|
|
extcoin = $('[data-extcoin]').attr('data-extcoin'), |
|
|
|
passthru_agent = getPassthruAgent(), |
|
|
@ -195,7 +195,7 @@ function KMD_getInfo_rtrn() { |
|
|
|
} |
|
|
|
|
|
|
|
$.ajax({ |
|
|
|
async: false, |
|
|
|
//async: true,
|
|
|
|
type: 'POST', |
|
|
|
data: JSON.stringify(ajax_data), |
|
|
|
url: 'http://127.0.0.1:' + config.iguanaPort, |
|
|
@ -211,6 +211,8 @@ function KMD_getInfo_rtrn() { |
|
|
|
} else { |
|
|
|
result.push(AjaxOutputData.errors); |
|
|
|
} |
|
|
|
|
|
|
|
cb.call(this, result[0]); |
|
|
|
}, |
|
|
|
error: function(xhr, textStatus, error) { |
|
|
|
console.log('failed getting Coin History.'); |
|
|
@ -228,9 +230,11 @@ function KMD_getInfo_rtrn() { |
|
|
|
|
|
|
|
function KMD_ProgressBar() { |
|
|
|
var result = [], |
|
|
|
extcoin = $('[data-extcoin]').attr('data-extcoin'), |
|
|
|
getinfotmp = KMD_getInfo_rtrn(); |
|
|
|
extcoin = $('[data-extcoin]').attr('data-extcoin'); |
|
|
|
|
|
|
|
KMD_getInfo_rtrn(_KMD_ProgressBar); |
|
|
|
|
|
|
|
function _KMD_ProgressBar(getinfotmp) { |
|
|
|
if (extcoin !== 'ZEC') { |
|
|
|
if ( getinfotmp == 'activating') { |
|
|
|
$('span[data-extcoin="' + extcoin + '"][id="extcoin-sync-percent"]').text(_lang[defaultLang].INDEX.ACTIVATING + '...'); |
|
|
@ -254,3 +258,4 @@ function KMD_ProgressBar() { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |