From 41d660dd98b48812bd649bdba28a9e04546b7424 Mon Sep 17 00:00:00 2001 From: PayBas Date: Tue, 14 Oct 2014 00:05:22 +0200 Subject: [PATCH] [ticket/13163] Terminate timely when no data-last links exist PHPBB3-13163 --- phpBB/styles/prosilver/template/forum_fn.js | 6 +++--- 1 file 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) {