mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +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);
|
$(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
|
// Responsive tabs
|
||||||
$('#tabs').not('.skip-responsive').each(function() {
|
$('#tabs').not('.skip-responsive').each(function() {
|
||||||
var $this = $(this),
|
var $this = $(this),
|
||||||
|
@ -674,5 +668,16 @@ function insert_single_user(formId, user)
|
||||||
check(true);
|
check(true);
|
||||||
$(window).resize(check);
|
$(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);
|
})(jQuery);
|
||||||
|
|
Loading…
Add table
Reference in a new issue