From 8a70852c5e778edb1b4aee41a491cb5b4d2c3e38 Mon Sep 17 00:00:00 2001 From: bergware Date: Mon, 3 Feb 2025 10:50:18 +0100 Subject: [PATCH] Revert "Update DashStats.page" This reverts commit 5e8d17b20c0389918b00ce62bf10768868a0279a. --- emhttp/plugins/dynamix/DashStats.page | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/emhttp/plugins/dynamix/DashStats.page b/emhttp/plugins/dynamix/DashStats.page index 1fbe44ad0..8016b8675 100644 --- a/emhttp/plugins/dynamix/DashStats.page +++ b/emhttp/plugins/dynamix/DashStats.page @@ -833,7 +833,7 @@ var options_net = { var cpuchart = new ApexCharts(document.querySelector('#cpuchart'), options_cpu); var netchart = new ApexCharts(document.querySelector('#netchart'), options_net); -if (cookie.port_select && !ports.includes(cookie.port_select)) { +if (cookie.port_select!=null && !ports.includes(cookie.port_select)) { delete cookie.port_select; saveCookie(); } @@ -1356,6 +1356,7 @@ function openClose(button) { hidden.splice(hidden.indexOf(tbody.attr('sort')),1); } cookie.hidden_content = hidden.join(';'); + saveCookie(); } else { // show/hide all tiles content if (hidden.length==0) { @@ -1365,15 +1366,16 @@ function openClose(button) { hidden.push($(this).attr('sort')); }); cookie.hidden_content = hidden.join(';'); + saveCookie(); } else { $('div.frame tbody').each(function(){ $(this).find('.openclose').removeClass('fa-chevron-up fa-chevron-down').addClass('fa-chevron-up'); $(this).mixedView(1); }); delete cookie.hidden_content; + saveCookie(); } } - saveCookie(); } function dismiss(button) {