mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-19 19:15:22 +00:00
correct prev head.inc
This commit is contained in:
parent
0e1634a661
commit
51c64953d2
@ -147,11 +147,13 @@ $pagetitle = gentitle( $pgtitle );
|
||||
|
||||
// hide submenu items
|
||||
$('#mainmenu .list-group-item').click(function(){
|
||||
$('#mainmenu .list-group-item').each(function(){
|
||||
if ($(this).attr('aria-expanded') == 'true' && $(this).data('parent') != '#mainmenu' && $(this).attr('href').substring(0,1) != '#') {
|
||||
$("#"+$(this).attr('href').substring(1,999)).collapse('hide');
|
||||
}
|
||||
});
|
||||
if($(this).attr('href').substring(0,1) == '#') {
|
||||
$('#mainmenu .list-group-item').each(function(){
|
||||
if ($(this).attr('aria-expanded') == 'true' && $(this).data('parent') != '#mainmenu') {
|
||||
$("#"+$(this).attr('href').substring(1,999)).collapse('hide');
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user