mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-17 07:01:22 +02:00
[ticket/13163] Terminate timely when no data-last links exist
PHPBB3-13163
This commit is contained in:
@@ -580,6 +580,9 @@ function parseDocument($container) {
|
||||
}
|
||||
|
||||
// STEP 4: Last responsive set - compact
|
||||
if (!$linksLast.length) {
|
||||
return; // No other links to hide, can't do more
|
||||
}
|
||||
if (compact) {
|
||||
$this.removeClass('compact');
|
||||
compact = false;
|
||||
@@ -604,9 +607,6 @@ function parseDocument($container) {
|
||||
$this.addClass('compact');
|
||||
compact = true;
|
||||
}
|
||||
if ($this.height() <= maxHeight) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (!persistent) {
|
||||
|
Reference in New Issue
Block a user