Fixed issues in js pagination
authorMarcel Werk <burntime@woltlab.com>
Sat, 25 Jun 2016 12:02:41 +0000 (14:02 +0200)
committerMarcel Werk <burntime@woltlab.com>
Sat, 25 Jun 2016 16:36:35 +0000 (18:36 +0200)
wcfsetup/install/files/js/WoltLab/WCF/Ui/Page/JumpTo.js
wcfsetup/install/files/js/WoltLab/WCF/Ui/Pagination.js

index b78c97da2fffe690ff8220da359c8636776cda19..d9e27c17f23a3f017245c5585a4c9b25236695ba 100644 (file)
@@ -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));
                        }
                },
                
index e53eda0685c88fac648b727f3bb64b6ba47d1191..99e693bb5cf0e7b6369d81f597132b3b7a650695 100644 (file)
@@ -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';