Skip to content

Commit

Permalink
Pager: fix setting of filteredRows from ajaxProcessing. Fixes #649
Browse files Browse the repository at this point in the history
  • Loading branch information
Mottie committed Jun 22, 2014
1 parent a10f0de commit d6666e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 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 @@ -297,7 +297,7 @@
if (!$.isArray(result)) {
p.ajaxData = result;
p.totalRows = result.total;
p.filteredRows = result.filteredRows || result.total;
p.filteredRows = typeof result.filteredRows !== 'undefined' ? result.filteredRows : result.total;
th = result.headers;
d = result.rows;
} else {
Expand Down
2 changes: 1 addition & 1 deletion js/widgets/widget-pager.js
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ tsp = ts.pager = {
if (!$.isArray(result)) {
p.ajaxData = result;
p.totalRows = result.total;
p.filteredRows = result.filteredRows || result.total;
p.filteredRows = typeof result.filteredRows !== 'undefined' ? result.filteredRows : result.total;
th = result.headers;
d = result.rows;
} else {
Expand Down

0 comments on commit d6666e4

Please sign in to comment.