Browse Source

Merge pull request #85 from pbca26/master

fixed a bug in privkeys export
master
pbca26 8 years ago
committed by GitHub
parent
commit
3ed3ab69b8
  1. 2
      assets/scripts/dashboard.js
  2. 5
      assets/scripts/kmd_wallet/KMDInit.js
  3. 11
      assets/scripts/kmd_wallet_dashboard.js
  4. 2
      assets/scripts/walletsettings.js

2
assets/scripts/dashboard.js

@ -1085,7 +1085,7 @@ var Dashboard = function() {
}); });
} }
}, 1000); }, 10000);
var FetchBasiliskData = setInterval(function() { var FetchBasiliskData = setInterval(function() {
var active_edexcoin = $('[data-edexcoin]').attr('data-edexcoin'), var active_edexcoin = $('[data-edexcoin]').attr('data-edexcoin'),

5
assets/scripts/kmd_wallet/KMDInit.js

@ -15,7 +15,7 @@ function RunKMDInitFunctions() {
}); });
NProgress.start(); NProgress.start();
var check1 = CheckIfConnected(); function _RunKMDInitFunctions(check1) {
console.log(check1[0]); console.log(check1[0]);
if ( check1[0] == 'not active' ) { if ( check1[0] == 'not active' ) {
console.log('Could not connect to external wallet. Is external wallet running?'); console.log('Could not connect to external wallet. Is external wallet running?');
@ -167,3 +167,6 @@ function RunKMDInitFunctions() {
$('#kmd_wallet_recieve_section').hide(); $('#kmd_wallet_recieve_section').hide();
NProgress.done(); NProgress.done();
} }
CheckIfConnected(_RunKMDInitFunctions);
}

11
assets/scripts/kmd_wallet_dashboard.js

@ -55,7 +55,7 @@ function getPassthruAgent() {
return passthru_agent; return passthru_agent;
} }
function CheckIfConnected() { function CheckIfConnected(cb) {
var result = [], var result = [],
extcoin = $('[data-extcoin]').attr('data-extcoin'), extcoin = $('[data-extcoin]').attr('data-extcoin'),
passthru_agent = getPassthruAgent(), passthru_agent = getPassthruAgent(),
@ -82,7 +82,7 @@ function CheckIfConnected() {
console.log(ajax_data); console.log(ajax_data);
$.ajax({ $.ajax({
async: false, //async: false,
type: 'POST', type: 'POST',
data: JSON.stringify(ajax_data), data: JSON.stringify(ajax_data),
url: 'http://127.0.0.1:' + config.iguanaPort, url: 'http://127.0.0.1:' + config.iguanaPort,
@ -98,6 +98,8 @@ function CheckIfConnected() {
} else { } else {
result.push(AjaxOutputData.errors); result.push(AjaxOutputData.errors);
} }
cb.call(this, result);
}, },
error: function(xhr, textStatus, error) { error: function(xhr, textStatus, error) {
console.log('failed getting Coin History.'); console.log('failed getting Coin History.');
@ -107,12 +109,15 @@ function CheckIfConnected() {
} }
console.log(textStatus); console.log(textStatus);
console.log(error); console.log(error);
cb.call(this, result);
} }
}); });
return result; return result;
} }
// TODO: this func is not used anywhere
function CheckIfWalletEncrypted() { function CheckIfWalletEncrypted() {
var result = [], var result = [],
passthru_agent = getPassthruAgent(), passthru_agent = getPassthruAgent(),
@ -195,7 +200,6 @@ function KMD_getInfo_rtrn(cb) {
} }
$.ajax({ $.ajax({
//async: true,
type: 'POST', type: 'POST',
data: JSON.stringify(ajax_data), data: JSON.stringify(ajax_data),
url: 'http://127.0.0.1:' + config.iguanaPort, url: 'http://127.0.0.1:' + config.iguanaPort,
@ -222,6 +226,7 @@ function KMD_getInfo_rtrn(cb) {
} }
console.log(textStatus); console.log(textStatus);
console.log(error); console.log(error);
cb.call(this, result);
} }
}); });

2
assets/scripts/walletsettings.js

@ -66,7 +66,7 @@ var WalletSettings = function() {
var EncryptWalletDataOutput = JSON.parse(data); var EncryptWalletDataOutput = JSON.parse(data);
console.log(EncryptWalletDataOutput[wifkey_coin_handle + 'wif']); console.log(EncryptWalletDataOutput[wifkey_coin_handle + 'wif']);
WifKeyDivContent += '<table class="table">'; var WifKeyDivContent = '<table class="table">' +
'<tr>' + '<tr>' +
'<td style="width: 5%">' + '<td style="width: 5%">' +
'<b>' + wifkey_coin_handle + '</b>' + '<b>' + wifkey_coin_handle + '</b>' +

Loading…
Cancel
Save