aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/styles
diff options
context:
space:
mode:
authorVjacheslav Trushkin <cyberalien@gmail.com>2013-09-15 16:53:37 +0300
committerVjacheslav Trushkin <cyberalien@gmail.com>2013-10-17 21:11:38 +0300
commit8ea5a77aa2dde246ec5de7617a0a2f3a83b14565 (patch)
treeab2efcb6acd768ce00091c48851a37fe6a4b730e /phpBB/styles
parenta1f118872ba08bf9230308112ddaa52fcc7385f8 (diff)
downloadforums-8ea5a77aa2dde246ec5de7617a0a2f3a83b14565.tar
forums-8ea5a77aa2dde246ec5de7617a0a2f3a83b14565.tar.gz
forums-8ea5a77aa2dde246ec5de7617a0a2f3a83b14565.tar.bz2
forums-8ea5a77aa2dde246ec5de7617a0a2f3a83b14565.tar.xz
forums-8ea5a77aa2dde246ec5de7617a0a2f3a83b14565.zip
[ticket/11552] Join functions for hiding tabs and menu
PHPBB3-11552
Diffstat (limited to 'phpBB/styles')
-rw-r--r--phpBB/styles/prosilver/template/forum_fn.js17
1 files changed, 11 insertions, 6 deletions
diff --git a/phpBB/styles/prosilver/template/forum_fn.js b/phpBB/styles/prosilver/template/forum_fn.js
index ec5e7cc946..99fc50aadd 100644
--- a/phpBB/styles/prosilver/template/forum_fn.js
+++ b/phpBB/styles/prosilver/template/forum_fn.js
@@ -606,12 +606,6 @@ function insert_single_user(formId, user)
$(window).resize(check);
});
- $('#phpbb').click(function(e) {
- if (!$(e.target).parents().is('.responsive-menu.visible')) {
- $('.responsive-menu.visible').removeClass('visible').find('.responsive-popup').hide();
- }
- });
-
// Responsive tabs
$('#tabs').not('.skip-responsive').each(function() {
var $this = $(this),
@@ -674,5 +668,16 @@ function insert_single_user(formId, user)
check(true);
$(window).resize(check);
});
+
+ // Hide responsive menu and tabs
+ $('#phpbb').click(function(e) {
+ var parents = $(e.target).parents();
+ if (!parents.is('.responsive-menu.visible')) {
+ $('.responsive-menu.visible').removeClass('visible').find('.responsive-popup').hide();
+ }
+ if (!parents.is('.responsive-tab')) {
+ $('.responsive-tabs').hide();
+ }
+ });
});
})(jQuery);