mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-04 15:57:45 +02:00
[ticket/11957] Hide other navigation items when one is activated
PHPBB3-11957
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user