From: Luzifr Date: Fri, 14 Oct 2011 18:09:17 +0000 (+0200) Subject: More refinements to the page navigation generation X-Git-Tag: 2.0.0_Beta_1~1684^2~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=be21c4ebaf5fa0bddfd52169ebc0d6e816bf4d1f;p=GitHub%2FWoltLab%2FWCF.git More refinements to the page navigation generation --- 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