Browse Source

test

master
Satinder Grewal 8 years ago
parent
commit
5590a431dd
  1. 6
      assets/scripts/dashboard.js

6
assets/scripts/dashboard.js

@ -214,10 +214,12 @@ var Dashboard = function() {
if ( value == "basilisk") {
//console.log("ShowCoinHistory and ShowCoinProgressBar not executing for basilisk...");
} else {
ShowCoinHistory(historyvalues);
//console.log('wallet widget refereshed (every 1 seconds)');
//Show Coin Progress Bars
ShowCoinProgressBar(AllcoinsDataOutput[value][index]);
if ( sessionStorage.getItem('Activate'+AllcoinsDataOutput[value][index]+'History') === 'Yes' ) {
ShowCoinHistory(historyvalues);
}
}
}
}, 1000);
@ -614,6 +616,7 @@ function ShowCoinProgressBar(coin) {
//console.log(coin+' is undefined');
} else {
if ( parseInt(CoinInfoData.RTheight) != 0 ) {
sessionStorage.setItem('Activate'+coin+'History', 'Yes');
var coin_blocks = parseInt(CoinInfoData.blocks);
var coin_blocks_plus1 = coin_blocks + 1;
//console.log(coin+' is less than 99.98% complete.');
@ -624,6 +627,7 @@ function ShowCoinProgressBar(coin) {
$('div[data-currency="'+coin+'"][id="currency-bundles"]').removeClass( "progress-bar-info" ).addClass( "progress-bar-indicating progress-bar-success" );
}
if ( parseInt(CoinInfoData.RTheight) == 0 ) {
sessionStorage.setItem('Activate'+coin+'History', 'No');
console.log(coin+': '+CoinInfoData.bundles);
var coin_blocks = parseInt(CoinInfoData.blocks);
var coin_blocks_plus1 = coin_blocks + 1;

Loading…
Cancel
Save