mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-25 19:38:53 +00:00
[ticket/11957] Hide other navigation items when one is activated
PHPBB3-11957
This commit is contained in:
parent
00734741af
commit
1cdb9a8057
1 changed files with 5 additions and 1 deletions
|
@ -25,7 +25,11 @@ function parse_document(container)
|
|||
|
||||
// Set onclick event
|
||||
blocks.children('a.header').click(function() {
|
||||
$(this).parent().toggleClass('active');
|
||||
var parent = $(this).parent();
|
||||
if (!parent.hasClass('active')) {
|
||||
parent.siblings().removeClass('active');
|
||||
}
|
||||
parent.toggleClass('active');
|
||||
});
|
||||
|
||||
// Set active menu
|
||||
|
|
Loading…
Add table
Reference in a new issue