mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-17 10:04:41 +00:00
ui: sticky sub-submenu; closes #2782
sticky sub-submenu on mouseout when next item does not have a sub-submenu -> https://github.com/opnsense/core/issues/2554
This commit is contained in:
parent
8b79dd1672
commit
651bccc47f
@ -107,6 +107,10 @@ $(document).ready(function () {
|
||||
mouseenter: function() {
|
||||
if ($(this).next("div").hasClass("in")) {
|
||||
$("#navigation.col-sidebar-left").css("width", "415px");
|
||||
} else if ($(this).next().is("a")) {
|
||||
$("#navigation.col-sidebar-left").css("width", "415px");
|
||||
$(this).nextAll("a").prevAll("a").addClass("collapsed").attr("aria-expanded","false");
|
||||
$(this).nextAll("div").prevAll("div").removeClass("in").attr("aria-expanded","false");
|
||||
} else {
|
||||
$("#navigation.col-sidebar-left").css("width", "415px");
|
||||
$(this).trigger("click");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user