Commit d2d8a09a authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

some rework for https://github.com/opnsense/core/issues/401

(cherry picked from commit f510f1fe)
parent 05df3f22
......@@ -148,7 +148,7 @@ $pagetitle = gentitle( $pgtitle );
// hide submenu items
$('#mainmenu .list-group-item').click(function(){
$('#mainmenu .list-group-item').each(function(){
if ($(this).attr('aria-expanded') == 'true') {
if ($(this).attr('aria-expanded') == 'true' && $(this).data('parent') != '#mainmenu' ) {
$("#"+$(this).attr('href').substring(1,999)).collapse('hide');
}
});
......
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