Commit dd269c70 authored by Ad Schellevis's avatar Ad Schellevis

(mvc, template) submenu collapse closes, https://github.com/opnsense/core/issues/401

parent 2dddcfd4
......@@ -67,6 +67,14 @@
$("#mainmenu").find('[href="#' + $(this).attr('id') + '"]').remove();
}
});
// hide submenu items
$('#mainmenu .list-group-item').click(function(){
$('#mainmenu .list-group-item').each(function(){
if ($(this).attr('aria-expanded') == 'true') {
$("#"+$(this).attr('href').substring(1,999)).collapse('hide');
}
});
});
initFormHelpUI();
initFormAdvancedUI();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment