aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPayBas <contact@paybas.com>2014-10-14 00:05:22 +0200
committerPayBas <contact@paybas.com>2014-10-14 00:05:22 +0200
commit41d660dd98b48812bd649bdba28a9e04546b7424 (patch)
tree75c76b90b5ab19813f11ad58f3efd8655bfdc76b
parent36d1f87c5a268c7db3e4c4b3fd57c1d6378666ac (diff)
downloadforums-41d660dd98b48812bd649bdba28a9e04546b7424.tar
forums-41d660dd98b48812bd649bdba28a9e04546b7424.tar.gz
forums-41d660dd98b48812bd649bdba28a9e04546b7424.tar.bz2
forums-41d660dd98b48812bd649bdba28a9e04546b7424.tar.xz
forums-41d660dd98b48812bd649bdba28a9e04546b7424.zip
[ticket/13163] Terminate timely when no data-last links exist
PHPBB3-13163
-rw-r--r--phpBB/styles/prosilver/template/forum_fn.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/styles/prosilver/template/forum_fn.js b/phpBB/styles/prosilver/template/forum_fn.js
index de4835f2ce..d8117b6401 100644
--- a/phpBB/styles/prosilver/template/forum_fn.js
+++ b/phpBB/styles/prosilver/template/forum_fn.js
@@ -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) {