From: Marcel Werk Date: Sat, 25 Jun 2016 12:02:41 +0000 (+0200) Subject: Fixed issues in js pagination X-Git-Tag: 3.0.0_Beta_1~1354 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=913d07567a4f35a81c49f8802f182a47581d130a;p=GitHub%2FWoltLab%2FWCF.git Fixed issues in js pagination --- diff --git a/wcfsetup/install/files/js/WoltLab/WCF/Ui/Page/JumpTo.js b/wcfsetup/install/files/js/WoltLab/WCF/Ui/Page/JumpTo.js index b78c97da2f..d9e27c17f2 100644 --- a/wcfsetup/install/files/js/WoltLab/WCF/Ui/Page/JumpTo.js +++ b/wcfsetup/install/files/js/WoltLab/WCF/Ui/Page/JumpTo.js @@ -44,12 +44,10 @@ define(['Language', 'ObjectMap', 'Ui/Dialog'], function(Language, ObjectMap, UiD } if (!_elements.has(element)) { - var jumpTo = elBySel('.jumpTo', element); - if (jumpTo !== null) { + elBySelAll('.jumpTo', element, (function(jumpTo) { jumpTo.addEventListener(WCF_CLICK_EVENT, this._click.bind(this, element)); - _elements.set(element, { callback: callback }); - } + }).bind(this)); } }, diff --git a/wcfsetup/install/files/js/WoltLab/WCF/Ui/Pagination.js b/wcfsetup/install/files/js/WoltLab/WCF/Ui/Pagination.js index e53eda0685..99e693bb5c 100644 --- a/wcfsetup/install/files/js/WoltLab/WCF/Ui/Pagination.js +++ b/wcfsetup/install/files/js/WoltLab/WCF/Ui/Pagination.js @@ -40,7 +40,6 @@ define(['Core', 'Language', 'ObjectMap', 'StringUtil', 'WoltLab/WCF/Ui/Page/Jump if (typeof this._options.callbackSwitch !== 'function') this._options.callbackSwitch = null; this._element.classList.add('pagination'); - this._element.classList.add('small'); this._rebuild(this._element); }, @@ -60,7 +59,7 @@ define(['Core', 'Language', 'ObjectMap', 'StringUtil', 'WoltLab/WCF/Ui/Page/Jump listItem.className = 'skip'; list.appendChild(listItem); - var iconClassNames = 'icon icon16 fa-angle-double-left'; + var iconClassNames = 'icon icon16 fa-chevron-left'; if (this._options.activePage > 1) { link = elCreate('a'); link.className = iconClassNames + ' jsTooltip'; @@ -158,7 +157,7 @@ define(['Core', 'Language', 'ObjectMap', 'StringUtil', 'WoltLab/WCF/Ui/Page/Jump listItem.className = 'skip'; list.appendChild(listItem); - iconClassNames = 'icon icon16 fa-angle-double-right'; + iconClassNames = 'icon icon16 fa-chevron-right'; if (this._options.activePage < this._options.maxPage) { link = elCreate('a'); link.className = iconClassNames + ' jsTooltip';