1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

[ticket/11957] Hide other navigation items when one is activated

PHPBB3-11957
This commit is contained in:
Vjacheslav Trushkin
2013-10-26 22:11:55 +03:00
parent 00734741af
commit 1cdb9a8057

View File

@@ -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