mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-26 03:48: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
|
// Set onclick event
|
||||||
blocks.children('a.header').click(function() {
|
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
|
// Set active menu
|
||||||
|
|
Loading…
Add table
Reference in a new issue