Fixes #12 - wrong payments chart order & JS error on #pool_blocks

pull/20/merge
fancoder 2014-08-19 12:57:42 +04:00
parent 4911c1f7f9
commit 53d3dd4fba
3 changed files with 5 additions and 6 deletions

View File

@ -40,7 +40,7 @@ function convertPaymentsDataToChart(paymentsData) {
var data = [];
if(paymentsData && paymentsData.length) {
for(var i = 0; paymentsData[i]; i += 2) {
data.push([+paymentsData[i + 1], paymentsData[i].split(':')[1]]);
data.unshift([+paymentsData[i + 1], paymentsData[i].split(':')[1]]);
}
}
return data;

View File

@ -290,6 +290,10 @@
updateText('poolVersion', lastStats.config.version);
}
function getBlockchainUrl(id) {
return blockchainExplorer.replace('{symbol}', lastStats.config.symbol.toLowerCase()).replace('{id}', id);
}
$(function(){
$("head").append("<link rel='stylesheet' href=" + themeCss + ">");

View File

@ -368,11 +368,6 @@
$('#networkLastBlockFound,#poolLastBlockFound,#yourLastShare,#marketLastUpdated').timeago();
function getBlockchainUrl(id) {
return blockchainExplorer.replace('{symbol}', lastStats.config.symbol.toLowerCase()).replace('{id}', id);
}
function getReadableTime(seconds){
var units = [ [60, 'second'], [60, 'minute'], [24, 'hour'],