[ticket/13163] Terminate timely when no data-last links exist

PHPBB3-13163
This commit is contained in:
PayBas 2014-10-14 00:05:22 +02:00
parent 36d1f87c5a
commit 41d660dd98

View file

@ -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) {