Browse Source

Jumblr Section Jumblr Addresses are hidden to show by default

master
Satinder Grewal 8 years ago
parent
commit
08bf953e23
  1. 5
      assets/scripts/dashboard.js
  2. 2
      assets/scripts/iguana_api.js
  3. 20
      assets/scripts/jumblr.js
  4. 24
      index.html

5
assets/scripts/dashboard.js

@ -830,7 +830,10 @@ var Dashboard = function() {
if ( sessionStorage.getItem('edexTmpMode') !== null || sessionStorage.getItem('edexTmpMode') === 'Basilisk') {
if ( sessionStorage.getItem('edexTmpRefresh') === null || sessionStorage.getItem('edexTmpRefresh') === 'start') {
var active_edexcoin = $('[data-edexcoin]').attr('data-edexcoin')
ShowBasiliskFetchDataProgress(active_edexcoin);
var active_edexcoinmodecode = sessionStorage.getItem('edexTmpMode');
if (active_edexcoinmodecode === 'Basilisk') {
ShowBasiliskFetchDataProgress(active_edexcoin);
}
}
}
}

2
assets/scripts/iguana_api.js

@ -1481,6 +1481,7 @@ function EDEXSendToAddr(data) {
'</tr>';
$('#edexcoin_sendto_result tbody').html(edexcoin_sendto_result_tbl);
$('#edexcoin_send_coins_anothertx_btn').show();
$('#edexcoin-send-txdetails-screen').data('panel-api').done();
}
var selected_coinmode = sessionStorage.getItem('edexTmpMode');
@ -1509,6 +1510,7 @@ function EDEXSendToAddr(data) {
}
console.log(textStatus);
console.log(error);
$('#edexcoin-send-txdetails-screen').data('panel-api').done();
}
});

20
assets/scripts/jumblr.js

@ -1,6 +1,17 @@
var Jumblr = function() {
var handleJumblr = function() {
$( ".jumblr_show_hide_addr_btc_btn" ).click(function() {
$( "#jumblr_BTCjumblr" ).toggle();
$( "#jumblr_BTCjumblr_showhide" ).toggle();
});
$( ".jumblr_show_hide_addr_kmd_btn" ).click(function() {
$( "#jumblr_KMDjumblr" ).toggle();
$( "#jumblr_KMDjumblr_showhide" ).toggle();
});
if ( sessionStorage.getItem('IguanaActiveAccount') === null ) {
//clearInterval(CheckIfIguanaRunning);
//console.log('=> No wallet logged in, or Dashboard not ative. No need to Run History.');
@ -58,10 +69,15 @@ function Jumblr_DisplayAddresses() {
function Jumblr_DisplayStatus() {
Iguana_Jumblr_Status().then(function(result){
//console.log(result)
$('#jumblr_status_BTCdeposit').text(result.BTCdeposit)
/*$('#jumblr_status_BTCdeposit').text(result.BTCdeposit)
$('#jumblr_status_BTCjumblr').text(result.BTCjumblr)
$('#jumblr_status_KMDdeposit').text(result.KMDdeposit)
$('#jumblr_status_KMDjumblr').text(result.KMDjumblr)
$('#jumblr_status_KMDjumblr').text(result.KMDjumblr)*/
if (result.result == 'success') {
$('#jumblr_status_result').addClass('label-success').removeClass('label-danger')
} else {
$('#jumblr_status_result').addClass('label-danger').removeClass('label-success')
}
$('#jumblr_status_result').text(result.result)
$('#jumblr_status_deposited').text(result.deposited)
$('#jumblr_status_t_to_z').text(result.t_to_z)

24
index.html

@ -1268,10 +1268,22 @@
<div class="table-responsive">
<table class="table table-striped">
<tbody>
<tr><td>BTC Deposit</td><td><span id="jumblr_BTCdeposit"></span></td></tr>
<tr><td>BTC Jumblr</td><td><span id="jumblr_BTCjumblr"></span></td></tr>
<tr><td width="30%">BTC Deposit</td><td><span id="jumblr_BTCdeposit"></span></td></tr>
<tr><td>BTC Jumblr</td><td>
<span class="label label-outline label-success" id="jumblr_BTCjumblr" style="display: none;"></span>
<span class="label label-outline label-default" id="jumblr_BTCjumblr_showhide">Hidden for security reason.</span>
<button type="button" class="btn btn-animate btn-animate-side btn-default waves-effect waves-light jumblr_show_hide_addr_btc_btn" data-jumblr="BTCjumblr">
<span><i class="icon fa-eye" aria-hidden="true"></i> Show/Hide</span>
</button>
</td></tr>
<tr><td>KMD Deposit</td><td><span id="jumblr_KMDdeposit"></span></td></tr>
<tr><td>KMD Jumblr</td><td><span id="jumblr_KMDjumblr"></span></td></tr>
<tr><td>KMD Jumblr</td><td>
<span class="label label-outline label-success" id="jumblr_KMDjumblr" style="display: none;"></span>
<span class="label label-outline label-default" id="jumblr_KMDjumblr_showhide">Hidden for security reason.</span>
<button type="button" class="btn btn-animate btn-animate-side btn-default waves-effect waves-light jumblr_show_hide_addr_kmd_btn" data-jumblr="KMDjumblr">
<span><i class="icon fa-eye" aria-hidden="true"></i> Show/Hide</span>
</button>
</td></tr>
</tbody>
</table>
</div>
@ -1286,11 +1298,11 @@
<div class="table-responsive">
<table class="table table-striped">
<tbody>
<tr><td>BTC Deposit</td><td><span id="jumblr_status_BTCdeposit"></span></td></tr>
<!--<tr><td>BTC Deposit</td><td><span id="jumblr_status_BTCdeposit"></span></td></tr>
<tr><td>BTC Jumblr</td><td><span id="jumblr_status_BTCjumblr"></span></td></tr>
<tr><td>KMD Deposit</td><td><span id="jumblr_status_KMDdeposit"></span></td></tr>
<tr><td>KMD Jumblr</td><td><span id="jumblr_status_KMDjumblr"></span></td></tr>
<tr><td>Result</td><td><span id="jumblr_status_result"></span></td></tr>
<tr><td>KMD Jumblr</td><td><span id="jumblr_status_KMDjumblr"></span></td></tr>-->
<tr><td width="30%">Result</td><td><span id="jumblr_status_result" class="label label-success"></span></td></tr>
<tr><td>Deposited</td><td><span id="jumblr_status_deposited"></span></td></tr>
<tr><td>Public to Private</td><td><span id="jumblr_status_t_to_z"></span></td></tr>
<tr><td>Private to Private</td><td><span id="jumblr_status_z_to_z"></span></td></tr>

Loading…
Cancel
Save