diff --git a/src/opnsense/www/js/opnsense_theme.js b/src/opnsense/www/js/opnsense_theme.js index 1a635dce6..4a5e3b838 100644 --- a/src/opnsense/www/js/opnsense_theme.js +++ b/src/opnsense/www/js/opnsense_theme.js @@ -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");