diff options
Diffstat (limited to 'phpBB/adm/style/admin.js')
-rw-r--r-- | phpBB/adm/style/admin.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/phpBB/adm/style/admin.js b/phpBB/adm/style/admin.js index 08d93a2689..e9f0f1e512 100644 --- a/phpBB/adm/style/admin.js +++ b/phpBB/adm/style/admin.js @@ -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 |