1
0
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:
PayBas
2014-07-03 13:30:44 +02:00
parent 04550fcd8c
commit d8d6e3e943
3 changed files with 18 additions and 6 deletions

View File

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