From c82a7c8cfe017e235056fdb6675d8c1ec63694fc Mon Sep 17 00:00:00 2001 From: bergware Date: Sat, 27 Aug 2016 17:38:26 +0200 Subject: [PATCH] Add collapsable CPU load details in Dashboard --- plugins/dynamix/DashStats.page | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/plugins/dynamix/DashStats.page b/plugins/dynamix/DashStats.page index 5a5c07569..1547260d0 100644 --- a/plugins/dynamix/DashStats.page +++ b/plugins/dynamix/DashStats.page @@ -503,10 +503,8 @@ function dropdown(menu) { $(select).change(); } function toggle_CPU(init) { - if ($.cookie('cpu')===undefined) { - if (!init) $.cookie('cpu','close',{path:'/',expires:3650}); - } else { - if (!init) $.removeCookie('cpu',{path:'/'}); + if (!init) { + if ($.cookie('cpu')===undefined) $.cookie('cpu','close',{path:'/',expires:3650}); else $.removeCookie('cpu',{path:'/'}); } if ($.cookie('cpu')===undefined) { $('.cpu_open').show();