Add collapsable CPU load details in Dashboard

This commit is contained in:
bergware
2016-08-27 17:38:26 +02:00
parent 3c527c6811
commit c82a7c8cfe

View File

@@ -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();