From be21c4ebaf5fa0bddfd52169ebc0d6e816bf4d1f Mon Sep 17 00:00:00 2001 From: Luzifr Date: Fri, 14 Oct 2011 20:09:17 +0200 Subject: [PATCH] More refinements to the page navigation generation --- wcfsetup/install/files/js/WCF.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index c935be4f3d..dc3532d8f2 100644 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -2808,7 +2808,7 @@ $.widget('ui.wcfPages', { var $pageList = $(''); this.element.append($pageList); - var $previousElement = $('
  • '); + var $previousElement = $('
  • ').addClass('skip'); $pageList.append($previousElement); if (this.options.activePage > 1) { @@ -2822,8 +2822,8 @@ $.widget('ui.wcfPages', { else { var $previousImage = $(''); $previousElement.append($previousImage); + $previousElement.addClass('disabled'); } - $previousElement.addClass('skip'); // add first page $pageList.append(this._renderLink(1)); @@ -2949,7 +2949,7 @@ $.widget('ui.wcfPages', { $pageList.append(this._renderLink(this.options.maxPage)); // add next button - var $nextElement = $('
  • '); + var $nextElement = $('
  • ').addClass('skip'); $pageList.append($nextElement); if (this.options.activePage < this.options.maxPage) { @@ -2963,8 +2963,8 @@ $.widget('ui.wcfPages', { else { var $nextImage = $(''); $nextElement.append($nextImage); + $nextElement.addClass('disabled'); } - $nextElement.addClass('skip'); } else { // otherwise hide the paginator if not already hidden -- 2.20.1