diff options
author | Halil İbrahim Kalkan <hikalkan@gmail.com> | 2013-03-10 18:13:31 +0200 |
---|---|---|
committer | Halil İbrahim Kalkan <hikalkan@gmail.com> | 2013-03-10 18:13:31 +0200 |
commit | 1a540bc9dd0ce3855c41fd94f1894d67854ec8d3 (patch) | |
tree | af509dac6cef04612b2c46475ced3790c17ee336 /dev/jquery.jtable.paging.js | |
parent | 808a21ce6ff05210b746652ecf64f8c25f636714 (diff) | |
download | jtable-2.3.0.zip jtable-2.3.0.tar.gz jtable-2.3.0.tar.bz2 |
jTable v2.3.0v2.3.0
jQueryUI theme support with jqueryuiTheme option. [#135]
New field option: inputTitle. [#265]
Fixed some issues. [#134, #270, #371]
Updated some localization files.
Diffstat (limited to 'dev/jquery.jtable.paging.js')
-rw-r--r-- | dev/jquery.jtable.paging.js | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/dev/jquery.jtable.paging.js b/dev/jquery.jtable.paging.js index c8cdada..4d3069e 100644 --- a/dev/jquery.jtable.paging.js +++ b/dev/jquery.jtable.paging.js @@ -86,6 +86,8 @@ .addClass('jtable-bottom-panel') .insertAfter(this._$table); + this._jqueryuiThemeAddClass(this._$bottomPanel, 'ui-state-default'); + $('<div />').addClass('jtable-left-area').appendTo(this._$bottomPanel); $('<div />').addClass('jtable-right-area').appendTo(this._$bottomPanel); }, @@ -422,9 +424,14 @@ .data('pageNumber', this._currentPageNo - 1) .appendTo(this._$pagingListArea); + this._jqueryuiThemeAddClass($first, 'ui-button ui-state-default', 'ui-state-hover'); + this._jqueryuiThemeAddClass($previous, 'ui-button ui-state-default', 'ui-state-hover'); + if (this._currentPageNo <= 1) { $first.addClass('jtable-page-number-disabled'); $previous.addClass('jtable-page-number-disabled'); + this._jqueryuiThemeAddClass($first, 'ui-state-disabled'); + this._jqueryuiThemeAddClass($previous, 'ui-state-disabled'); } }, @@ -442,9 +449,14 @@ .data('pageNumber', pageCount) .appendTo(this._$pagingListArea); + this._jqueryuiThemeAddClass($next, 'ui-button ui-state-default', 'ui-state-hover'); + this._jqueryuiThemeAddClass($last, 'ui-button ui-state-default', 'ui-state-hover'); + if (this._currentPageNo >= pageCount) { $next.addClass('jtable-page-number-disabled'); $last.addClass('jtable-page-number-disabled'); + this._jqueryuiThemeAddClass($next, 'ui-state-disabled'); + this._jqueryuiThemeAddClass($last, 'ui-state-disabled'); } }, @@ -475,9 +487,11 @@ .data('pageNumber', pageNumber) .appendTo(this._$pagingListArea); + this._jqueryuiThemeAddClass($pageNumber, 'ui-button ui-state-default', 'ui-state-hover'); + if (this._currentPageNo == pageNumber) { - $pageNumber.addClass('jtable-page-number-active'); - $pageNumber.addClass('jtable-page-number-disabled'); + $pageNumber.addClass('jtable-page-number-active jtable-page-number-disabled'); + this._jqueryuiThemeAddClass($pageNumber, 'ui-state-active'); } }, |