mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-24 20:13:22 +01:00
[ticket/13163] Terminate timely when no data-last links exist
PHPBB3-13163
This commit is contained in:
parent
36d1f87c5a
commit
41d660dd98
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user