From d0dd07048fd981cb1a6d189b796afc796bc8b29b Mon Sep 17 00:00:00 2001 From: Satinder Grewal Date: Tue, 29 Nov 2016 00:29:35 +1300 Subject: [PATCH] progress bar bug fixed --- assets/scripts/dashboard.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/assets/scripts/dashboard.js b/assets/scripts/dashboard.js index 7fe09d4..9e8ca2a 100644 --- a/assets/scripts/dashboard.js +++ b/assets/scripts/dashboard.js @@ -859,7 +859,7 @@ function ShowCoinProgressBar(coin) { //console.log(coin+' is less than 99.98% complete.'); $('div[data-edexcoin="'+coin+'"][id="currency-progressbars"]').show(); $('div[data-edexcoin="'+coin+'"][id="currency-bundles"]').width(parseFloat(CoinInfoData.bundles).toFixed(2)+'%'); - $('span[data-edexcoin="'+coin+'"][id="currency-bundles-percent"]').text(parseFloat(CoinInfoData.bundles).toFixed(2)+'% - ( '+coin_blocks_plus1+' / '+CoinInfoData.longestchain+' ) ==>> RT'+CoinInfoData.RTheight); + $('span[data-edexcoin="'+coin+'"][id="currency-bundles-percent"]').text('('+coin+') '+parseFloat(CoinInfoData.bundles).toFixed(2)+'% - ( '+coin_blocks_plus1+' / '+CoinInfoData.longestchain+' ) ==>> RT'+CoinInfoData.RTheight); $('div[data-edexcoin="'+coin+'"][id="additional-progress-bars"]').hide(); $('div[data-edexcoin="'+coin+'"][id="currency-bundles"]').removeClass( "progress-bar-info" ).addClass( "progress-bar-indicating progress-bar-success" ); $('#edex-footer').css("height", "11px"); @@ -870,7 +870,9 @@ function ShowCoinProgressBar(coin) { console.log(coin+': '+CoinInfoData.bundles); var coin_blocks = parseInt(CoinInfoData.blocks); var coin_blocks_plus1 = coin_blocks + 1; + $('div[data-edexcoin="'+coin+'"][id="additional-progress-bars"]').show(); $('div[data-edexcoin="'+coin+'"][id="currency-progressbars"]').show(); + $('div[data-edexcoin="'+coin+'"][id="currency-bundles"]').removeClass( "progress-bar-indicating progress-bar-success" ).addClass( "progress-bar-info" ); $('div[data-edexcoin="'+coin+'"][id="currency-bundles"]').width(parseFloat(CoinInfoData.bundles).toFixed(2)+'%'); $('span[data-edexcoin="'+coin+'"][id="currency-bundles-percent"]').text('('+coin+') '+parseFloat(CoinInfoData.bundles).toFixed(2)+'% - ( '+coin_blocks_plus1+' / '+CoinInfoData.longestchain+' )'); $('div[data-edexcoin="'+coin+'"][id="currency-utxo"]').width(parseFloat(CoinInfoData.utxo).toFixed(2)+'%');