Skip to content

Commit

Permalink
Pager: Fix page set issues (with filter widget). See #1085
Browse files Browse the repository at this point in the history
  • Loading branch information
Mottie committed Nov 20, 2015
1 parent 93dcd20 commit 684cc1f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion addons/pager/jquery.tablesorter.pager.js
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,7 @@
var min = getTotalPages( table, p ) - 1;
p.page = parseInt( p.page, 10 );
if ( p.page < 0 || isNaN( p.page ) ) { p.page = 0; }
if ( p.page > min && min !== 0 ) { p.page = min; }
if ( p.page > min && min >= 0 ) { p.page = min; }
return p.page;
},

Expand Down
2 changes: 1 addition & 1 deletion dist/js/extras/jquery.tablesorter.pager.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit 684cc1f

Please sign in to comment.