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:
opnsenseuser 2018-10-02 20:50:16 +02:00 committed by Franco Fichtner
parent 8b79dd1672
commit 651bccc47f

View File

@ -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");