From 86abaf3276e03eccf3cd12c54ab648aff24a5299 Mon Sep 17 00:00:00 2001 From: MatteoPistorello Date: Wed, 20 Nov 2024 09:07:35 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20visualizzazione=20men=C3=B9=20dei=20plug?= =?UTF-8?q?in?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/src/js/base/sidebar.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/assets/src/js/base/sidebar.js b/assets/src/js/base/sidebar.js index 4278f3d45..59c81efa6 100644 --- a/assets/src/js/base/sidebar.js +++ b/assets/src/js/base/sidebar.js @@ -53,12 +53,13 @@ $(document).ready(function () { }); // Barra plugin laterale - const pluginToggle = $(".control-sidebar-toggle"); + const pluginToggle = $(".control-sidebar-button"); const largeScreen = screen.width > 1280; // Gestione click sul pulsante per il toggle 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(); }); @@ -80,10 +81,6 @@ $(document).ready(function () { pluginToggle.click(); } - $('.control-sidebar-button').on("click", function(){ - toggleControlSidebar(); - }); - $('.control-sidebar .nav-item > a').on("click", function(){ toggleControlSidebar(); });