Fixes #12 - wrong payments chart order & JS error on #pool_blocks
parent
4911c1f7f9
commit
53d3dd4fba
|
@ -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;
|
||||
|
|
|
@ -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 + ">");
|
||||
|
||||
|
|
|
@ -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'],
|
||||
|
|
Loading…
Reference in New Issue