fix: visualizzazione menù dei plugin

This commit is contained in:
MatteoPistorello 2024-11-20 09:07:35 +01:00 committed by valentina
parent d26a066412
commit d8282505a4
1 changed files with 3 additions and 6 deletions

View File

@ -53,12 +53,13 @@ $(document).ready(function () {
}); });
// Barra plugin laterale // Barra plugin laterale
const pluginToggle = $(".control-sidebar-toggle"); const pluginToggle = $(".control-sidebar-button");
const largeScreen = screen.width > 1280; const largeScreen = screen.width > 1280;
// Gestione click sul pulsante per il toggle // Gestione click sul pulsante per il toggle
pluginToggle.on("click", function () { pluginToggle.on("click", function () {
$("aside.content-sidebar, section.content, .main-footer").toggleClass("with-control-sidebar"); $("aside.content-sidebar, section.content, .main-footer, .control-sidebar-button").toggleClass("with-control-sidebar");
$(".control-sidebar-button i").toggleClass("fa-chevron-right").toggleClass("fa-chevron-left");
toggleControlSidebar(); toggleControlSidebar();
}); });
@ -80,10 +81,6 @@ $(document).ready(function () {
pluginToggle.click(); pluginToggle.click();
} }
$('.control-sidebar-button').on("click", function(){
toggleControlSidebar();
});
$('.control-sidebar .nav-item > a').on("click", function(){ $('.control-sidebar .nav-item > a').on("click", function(){
toggleControlSidebar(); toggleControlSidebar();
}); });