Skip to content

Commit 54ff19b

Browse files
fix: chiusura sidebar plugin
1 parent 1c28b02 commit 54ff19b

1 file changed

Lines changed: 1 addition & 17 deletions

File tree

assets/src/js/base/sidebar.js

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -65,27 +65,11 @@ $(document).ready(function () {
6565
$(window).resize();
6666
});
6767

68-
// Gestione click sulla sidebar per evitare chiusura
69-
$(".control-sidebar").on("click", function (e) {
70-
const target = $(e.target);
71-
if (largeScreen && $(".main-footer").hasClass("with-control-sidebar")) {
72-
if (e.target.tagName === 'A') {
73-
toggleControlSidebar();
74-
} else if (e.target.tagName === 'LI' && target.find("a").hasClass("disabled")) {
75-
toggleControlSidebar();
76-
}
77-
}
78-
});
79-
8068
// Barra plugin laterale disabilitata per schermi piccoli
8169
if (largeScreen && !globals.collapse_plugin_sidebar) {
8270
pluginToggle.click();
8371
}
8472

85-
$('.control-sidebar .nav-item > a').on("click", function(){
86-
toggleControlSidebar();
87-
});
88-
8973
$('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
9074
window.dispatchEvent(new Event('resize'));
9175
});
@@ -98,4 +82,4 @@ function toggleControlSidebar() {
9882
const sidebar = $(".control-sidebar");
9983

10084
sidebar.toggleClass("control-sidebar-open");
101-
}
85+
}

0 commit comments

Comments
 (0)