diff --git a/assets/scripts/dashboard.js b/assets/scripts/dashboard.js
index 62925da..fe8cf51 100644
--- a/assets/scripts/dashboard.js
+++ b/assets/scripts/dashboard.js
@@ -119,6 +119,7 @@ var Dashboard = function() {
walletDivContent += '
';
walletDivContent += '
Bundles 0%
';
walletDivContent += '
';
+ walletDivContent += '';
walletDivContent += '
';
walletDivContent += '
utxo 0%
';
walletDivContent += '
';
@@ -128,6 +129,7 @@ var Dashboard = function() {
walletDivContent += '
';
walletDivContent += '
Validated 0%
';
walletDivContent += '
';
+ walletDivContent += '
';
walletDivContent += '';
walletDivContent += '';
walletDivContent += '';
@@ -538,11 +540,17 @@ function ShowCoinProgressBar(coin) {
if (typeof CoinInfoData.bundles == 'undefined') {
//console.log(coin+' is undefined');
} else {
- if ( parseInt(CoinInfoData.longestchain-1) != parseInt(CoinInfoData.blocks) ) {
+ if ( parseInt(CoinInfoData.RTheight) != 0 ) {
//console.log(coin+' is less than 99.98% complete.');
console.log(coin+': '+CoinInfoData.bundles);
$('div[data-currency="'+coin+'"][id="currency-progressbars"]').show();
$('div[data-currency="'+coin+'"][id="currency-bundles"]').width(parseFloat(CoinInfoData.bundles).toFixed(2)+'%');
+ $('span[data-currency="'+coin+'"][id="currency-bundles-percent"]').text(parseFloat(CoinInfoData.bundles).toFixed(2)+'% - ( '+CoinInfoData.blocks+' / '+CoinInfoData.longestchain+' ) ==>> RT'+CoinInfoData.RTheight);
+ $('div[data-currency="'+coin+'"][id="additional-progress-bars"]').hide();
+ }
+ if ( parseInt(CoinInfoData.RTheight) == 0 ) {
+ $('div[data-currency="'+coin+'"][id="currency-progressbars"]').hide();
+ $('div[data-currency="'+coin+'"][id="currency-bundles"]').width(parseFloat(CoinInfoData.bundles).toFixed(2)+'%');
$('span[data-currency="'+coin+'"][id="currency-bundles-percent"]').text(parseFloat(CoinInfoData.bundles).toFixed(2)+'% - ( '+CoinInfoData.blocks+' / '+CoinInfoData.longestchain+' )');
$('div[data-currency="'+coin+'"][id="currency-utxo"]').width(parseFloat(CoinInfoData.utxo).toFixed(2)+'%');
$('span[data-currency="'+coin+'"][id="currency-utxo-percent"]').text(parseFloat(CoinInfoData.utxo).toFixed(2)+'%');
@@ -551,9 +559,6 @@ function ShowCoinProgressBar(coin) {
$('div[data-currency="'+coin+'"][id="currency-validated"]').width(parseFloat(CoinInfoData.validated).toFixed(2)+'%');
$('span[data-currency="'+coin+'"][id="currency-validated-percent"]').text(parseFloat(CoinInfoData.validated).toFixed(2)+'%');
}
- if ( parseInt(CoinInfoData.longestchain-1) == parseInt(CoinInfoData.blocks) ) {
- $('div[data-currency="'+coin+'"][id="currency-progressbars"]').hide();
- }
}
},
error: function(xhr, textStatus, error) {