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) {