1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-06-05 14:04:57 +02:00

[ticket/11552] Join functions for hiding tabs and menu

PHPBB3-11552
This commit is contained in:
Vjacheslav Trushkin 2013-09-15 16:53:37 +03:00
parent a1f118872b
commit 8ea5a77aa2

View File

@ -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);