mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 01:24:38 +00:00
(mvc, template) submenu collapse closes, https://github.com/opnsense/core/issues/401
This commit is contained in:
parent
2dddcfd450
commit
dd269c7075
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user