mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/11552] Join functions for hiding tabs and menu
PHPBB3-11552
This commit is contained in:
parent
a1f118872b
commit
8ea5a77aa2
1 changed files with 11 additions and 6 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue