Skip to content

Commit

Permalink
fixed disabled pager elements - issue #157
Browse files Browse the repository at this point in the history
  • Loading branch information
Mottie committed Oct 17, 2012
1 parent 5c9ee38 commit e5b196b
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 16 deletions.
Binary file modified README.markdown
Binary file not shown.
6 changes: 4 additions & 2 deletions addons/pager/jquery.tablesorter.pager.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* tablesorter pager plugin
* updated 10/15/2012
* updated 10/17/2012
*/
/*jshint browser:true, jquery:true */
;(function($) {
Expand Down Expand Up @@ -324,7 +324,9 @@
renderTable(table, table.config.rowsCopy, c);
}
// disable size selector
$(c.cssPageSize, c.container).addClass(c.cssDisabled)[0].disabled = true;
$(c.container).find(c.cssPageSize + ',' + c.cssGoto).each(function(){
$(this).addClass(c.cssDisabled)[0].disabled = true;
});
},

moveToPage = function(table, c) {
Expand Down
4 changes: 2 additions & 2 deletions addons/pager/jquery.tablesorter.pager.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/example-pager-ajax.html
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ <h3>Flexible client-side table sorting</h3>
<ul>
<li>This update to the pager plugin that interacts with a database via ajax was added in version 2.0.32 and can be applied to the original tablesorter.</li>
<li>The <code>ajaxUrl</code> and <code>ajaxProcessing</code> function are both required options for this interaction to work properly.</li>
<li>The <code>ajaxUrl</code> contains a replaceable string to sent the requested page (<code>{page}</code>) and block size (<code>{size}</code>).</li>
<li>The <code>ajaxUrl</code> contains a replaceable string to sent the requested page (<code>{page}</code>), block size (<code>{size}</code>) or sort order (<code>{sortList:name}</code>).</li>
<li>The <code>ajaxProcessing</code> function must* return the data in the following format <code>[ total, rows, headers ]</code> - <span class="tip"><em>Modified</em></span> in 2.1.3:
<pre class="js"><code>[
// total # rows contained in the database
Expand Down
4 changes: 2 additions & 2 deletions js/jquery.tablesorter.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* TableSorter 2.4.3 - Client-side table sorting with ease!
* TableSorter 2.4.5 - Client-side table sorting with ease!
* @requires jQuery v1.2.6+
*
* Copyright (c) 2007 Christian Bach
Expand All @@ -23,7 +23,7 @@

var ts = this;

ts.version = "2.4";
ts.version = "2.4.5";

ts.parsers = [];
ts.widgets = [];
Expand Down
4 changes: 2 additions & 2 deletions js/jquery.tablesorter.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/jquery.tablesorter.widgets.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! tableSorter 2.4+ widgets - updated 10/13/2012
/*! tableSorter 2.4+ widgets - updated 10/17/2012
*
* Column Styles
* Column Filters
Expand Down
11 changes: 6 additions & 5 deletions js/jquery.tablesorter.widgets.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tablesorter",
"version": "2.4.4",
"version": "2.4.5",
"title": "tablesorter",
"author": {
"name": "Christian Bach",
Expand Down

0 comments on commit e5b196b

Please sign in to comment.