mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[ticket/12662] Hide quick-links when empty
Also some noJS fixes PHPBB3-12662
This commit is contained in:
@@ -519,6 +519,14 @@ function parse_document(container)
|
||||
return;
|
||||
}
|
||||
|
||||
// Unhide the quick-links menu if it has content
|
||||
if (persist) {
|
||||
item.addClass('hidden');
|
||||
if (menu.find('li:not(.separator, .clone)').length || (responsive && menu.find('li.clone').length)) {
|
||||
item.removeClass('hidden');
|
||||
}
|
||||
}
|
||||
|
||||
// Reset responsive and compact layout
|
||||
if (responsive) {
|
||||
responsive = false;
|
||||
|
Reference in New Issue
Block a user