Skip to content

Commit

Permalink
fix: visualizzazione menù dei plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
MatteoPistorello authored and Pek5892 committed Nov 20, 2024
1 parent d26a066 commit d828250
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions assets/src/js/base/sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
Expand All @@ -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();
});
Expand Down

0 comments on commit d828250

Please sign in to comment.