Made wcfPages-Widget like PagesFunctionTemplatePlugin.
authorMagnus Kühn <magnus@magnus-laptop.(none)>
Thu, 28 Jun 2012 13:02:30 +0000 (15:02 +0200)
committerMagnus Kühn <magnus@magnus-laptop.(none)>
Thu, 28 Jun 2012 13:02:30 +0000 (15:02 +0200)
wcfsetup/install/files/js/WCF.js

index 3076ffce815348c340db8b19336075fa57919736..59aa823d2fd6934aa94b8ede5a026393a0859207 100755 (executable)
@@ -6654,10 +6654,12 @@ $.widget('ui.wcfPages', {
                                $previousLink.append($previousImage);
                        }
                        else {
-                               var $previousImage = $('<img src="' + this.options.previousIcon + '" alt="" class="disabled" />');
+                               var $previousImage = $('<img src="' + this.options.previousIcon + '" alt="" />');
                                $previousElement.append($previousImage);
                                $previousElement.addClass('disabled');
+                               $previousImage.addClass('disabled');
                        }
+                       $previousImage.addClass('icon16');
                        
                        // add first page
                        $pageList.append(this._renderLink(1));
@@ -6795,10 +6797,12 @@ $.widget('ui.wcfPages', {
                                $nextLink.append($nextImage);
                        }
                        else {
-                               var $nextImage = $('<img src="' + this.options.nextIcon + '" alt="" class="disabled" />');
+                               var $nextImage = $('<img src="' + this.options.nextIcon + '" alt="" />');
                                $nextElement.append($nextImage);
                                $nextElement.addClass('disabled');
+                               $nextImage.addClass('disabled');
                        }
+                       $nextImage.addClass('icon16');
                }
                else {
                        // otherwise hide the paginator if not already hidden