From: Alexander Ebert Date: Tue, 21 Jun 2016 16:01:09 +0000 (+0200) Subject: Fixed pagination for phrases X-Git-Tag: 3.0.0_Beta_1~1378 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d741b59eb0ba7cb50e361a8ffcda440cedd6ccff;p=GitHub%2FWoltLab%2FWCF.git Fixed pagination for phrases --- 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 = $('