From d741b59eb0ba7cb50e361a8ffcda440cedd6ccff Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 21 Jun 2016 18:01:09 +0200 Subject: [PATCH] Fixed pagination for phrases --- .../install/files/acp/js/WCF.ACP.Language.js | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/wcfsetup/install/files/acp/js/WCF.ACP.Language.js b/wcfsetup/install/files/acp/js/WCF.ACP.Language.js index 342397373f..5c50d83084 100644 --- a/wcfsetup/install/files/acp/js/WCF.ACP.Language.js +++ b/wcfsetup/install/files/acp/js/WCF.ACP.Language.js @@ -51,7 +51,7 @@ WCF.ACP.Language.ItemList = Class.extend({ $button.click(function() { self._click($languageItemID); }); }, this)); - count = parseInt(count) || 0; + count = ~~count; if (count > 100) { this._createPagination(count, pageNo); } @@ -64,11 +64,18 @@ WCF.ACP.Language.ItemList = Class.extend({ * @param integer pageNo */ _createPagination: function(count, pageNo) { - $('.contentNavigation').each(function(index, contentNavigation) { - var $contentNavigation = $(contentNavigation); - var $nav = $('