Sidebar can remains closed on page change

This commit is contained in:
Pierre HUBERT 2019-05-16 17:24:23 +02:00
parent 949e9accdd
commit 8ac1aaafdb

View File

@ -247,7 +247,9 @@ ComunicWeb.common.page = {
//Set body class
document.body.className="hold-transition fixed skin-blue " + (signed_in() ? "sidebar-mini" : "layout-top-nav");
document.body.className="hold-transition fixed skin-blue " +
(signed_in() ? "sidebar-mini" : "layout-top-nav") +
(document.body.className.includes("sidebar-collapse") ? " sidebar-collapse " : "");
//We load the menubar
ComunicWeb.components.menuBar.common.display();