Memorizza preferenza di visualizzazione per il menù di sinistra

This commit is contained in:
Luca 2020-05-05 13:09:04 +02:00
parent e2b0f7ec2a
commit e07ccf1772
3 changed files with 3320 additions and 2450 deletions

View File

@ -44,4 +44,14 @@ $(document).ready(function () {
window.dispatchEvent(new Event('resize'));
}, 350);
});
// Mostra/nasconde sidebar sx
$(".sidebar-toggle").on("click", function(){
if ($( "body" ).hasClass( "sidebar-collapse" )){
session_set("settings,sidebar-collapse",0,1,0);
}else{
session_set("settings,sidebar-collapse",1,0,0);
}
});
});

View File

@ -260,7 +260,7 @@ if (Auth::check()) {
}
}
$hide_sidebar = Auth::check() && setting('Nascondere la barra sinistra di default');
$hide_sidebar = Auth::check() && (setting('Nascondere la barra sinistra di default') or $_SESSION['settings']['sidebar-collapse']);
echo '
</head>

File diff suppressed because it is too large Load Diff