aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVjacheslav Trushkin <cyberalien@gmail.com>2013-10-26 22:11:55 +0300
committerVjacheslav Trushkin <cyberalien@gmail.com>2013-10-26 22:11:55 +0300
commit1cdb9a80572843c6eea2de6dfb16bc066c2a9edf (patch)
tree6ecaea5275e27400df31d1dc2964d0710e8ab709
parent00734741af240ed4bcde1195e3584b48a998ee67 (diff)
downloadforums-1cdb9a80572843c6eea2de6dfb16bc066c2a9edf.tar
forums-1cdb9a80572843c6eea2de6dfb16bc066c2a9edf.tar.gz
forums-1cdb9a80572843c6eea2de6dfb16bc066c2a9edf.tar.bz2
forums-1cdb9a80572843c6eea2de6dfb16bc066c2a9edf.tar.xz
forums-1cdb9a80572843c6eea2de6dfb16bc066c2a9edf.zip
[ticket/11957] Hide other navigation items when one is activated
PHPBB3-11957
-rw-r--r--phpBB/adm/style/admin.js6
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