@@ -120,7 +120,7 @@ currentPage = {
$('#blocksTabs a').off('click')
},
update: function(updateKey){
- let stats = updateKey === parentCoin ? lastStats : mergedStats[updateKey]
+ let stats = lastStats;
if (stats) {
displayedChart[updateKey] = false
if (stats.charts.blocks) {
@@ -144,4 +144,3 @@ poolBlocks_InitTemplate(ranOnce, displayedChart, xhrGetBlocks)
-
diff --git a/website_example/pages/settings.html b/website_example/pages/settings.html
index ade35e0..1f3a4aa 100644
--- a/website_example/pages/settings.html
+++ b/website_example/pages/settings.html
@@ -57,11 +57,9 @@ let ranOnce = false
// Update current page
currentPage = {
destroy: function(){
- Object.keys(mergedApis).forEach(key => {
- $(`#payoutSetButton${key}`).off('click')
- $(`#enableButton${key}`).off('click')
- $(`#disableButton${key}`).off('click')
- })
+ $(`#payoutSetButton${lastStats.config.coin}`).off('click')
+ $(`#enableButton${lastStats.config.coin}`).off('click')
+ $(`#disableButton${lastStats.config.coin}`).off('click')
$('#blocksTabs a').off('click')
},
update: function(updateKey){
diff --git a/website_example/pages/top10miners.html b/website_example/pages/top10miners.html
index 70f7231..7a47c90 100644
--- a/website_example/pages/top10miners.html
+++ b/website_example/pages/top10miners.html
@@ -49,10 +49,7 @@ currentPage = {
$('#blocksTabs a').off('click')
},
update: function(updateKey){
- let endPoint = updateKey === parentCoin ? api : mergedApis[updateKey] ? mergedApis[updateKey].api : null
- if (endPoint) {
- top10Miners_UpdateTop10(xhrGetMiners, endPoint, updateKey)
- }
+ top10Miners_UpdateTop10(xhrGetMiners, api, updateKey)
}
};
@@ -67,4 +64,4 @@ function RunOnce() {
top10Miners_InitTemplate(xhrGetMiners, ranOnce)
-
\ No newline at end of file
+
diff --git a/website_example/pages/worker_stats.html b/website_example/pages/worker_stats.html
index dc55217..b003b4c 100644
--- a/website_example/pages/worker_stats.html
+++ b/website_example/pages/worker_stats.html
@@ -131,12 +131,6 @@ let ranOnce = false
currentPage = {
destroy: function(){
$(`#yourLastShare${lastStats.config.coin}`).timeago('dispose');
- if (mergedApis) {
- Object.keys(mergedApis).forEach(key => {
- if (mergedApis[key])
- $(`#yourLastShare${key}`).timeago('dispose');
- })
- }
if (xhrAddressPoll[lastStats.config.coin])
xhrAddressPoll[lastStats.config.coin].abort();
if (xhrAddressPoll) {
diff --git a/website_example/themes/custom.css b/website_example/themes/custom.css
index 1ebdecc..d4f8810 100644
--- a/website_example/themes/custom.css
+++ b/website_example/themes/custom.css
@@ -33,9 +33,6 @@ background: linear-gradient(45deg, #2c89a0 0%,#5fbcd3 100%); /* W3C, IE10+, FF16
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#2c89a0', endColorstr='#5fbcd3',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
}
-.mergedBg {
- background: #3b5ca3;
-}
#top-bar {
background-color: #164450;
@@ -99,9 +96,6 @@ background: linear-gradient(45deg, #2c89a0 0%,#5fbcd3 100%); /* W3C, IE10+, FF16
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#2c89a0', endColorstr='#5fbcd3',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
}
-.mergedBg {
- background: #3b5ca3;
-}
#top-bar {
background-color: #164450;
@@ -130,4 +124,4 @@ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#2c89a0', end
/*display: block;*/
/*text-shadow: none;*/
margin-top: -3px;
-}
\ No newline at end of file
+}