aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/styles/prosilver/template
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/styles/prosilver/template')
-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);