Commit 0e1634a6 authored by Ad Schellevis's avatar Ad Schellevis

correct previous default.volt

parent 098b691d
...@@ -69,11 +69,13 @@ ...@@ -69,11 +69,13 @@
}); });
// hide submenu items // hide submenu items
$('#mainmenu .list-group-item').click(function(){ $('#mainmenu .list-group-item').click(function(){
$('#mainmenu .list-group-item').each(function(){ if($(this).attr('href').substring(0,1) == '#') {
if ($(this).attr('aria-expanded') == 'true' && $(this).data('parent') != '#mainmenu' && $(this).attr('href').substring(0,1) != '#') { $('#mainmenu .list-group-item').each(function(){
$("#"+$(this).attr('href').substring(1,999)).collapse('hide'); if ($(this).attr('aria-expanded') == 'true' && $(this).data('parent') != '#mainmenu') {
} $("#"+$(this).attr('href').substring(1,999)).collapse('hide');
}); }
});
}
}); });
initFormHelpUI(); initFormHelpUI();
......
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