mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-01-28 14:39:28 +01:00
Fix sidebar plugin per pulsanti disabilitati
This commit is contained in:
parent
10d6b8c9a7
commit
d2d1de95d4
@ -87,8 +87,13 @@ $(document).ready(function () {
|
|||||||
|
|
||||||
// Gestione click sulla sidebar per evitare chiusura
|
// Gestione click sulla sidebar per evitare chiusura
|
||||||
$(".control-sidebar").on("click", function (e) {
|
$(".control-sidebar").on("click", function (e) {
|
||||||
if (largeScreen && e.target.tagName === 'A' && $(".main-footer").hasClass("with-control-sidebar")) {
|
const target = $(e.target);
|
||||||
toggleControlSidebar();
|
if (largeScreen && $(".main-footer").hasClass("with-control-sidebar")) {
|
||||||
|
if (e.target.tagName === 'A') {
|
||||||
|
toggleControlSidebar();
|
||||||
|
} else if (e.target.tagName === 'LI' && target.find("a").hasClass("disabled")) {
|
||||||
|
toggleControlSidebar();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user