From 554c5269f74384bb0c97fdcf835415da865f1932 Mon Sep 17 00:00:00 2001 From: evanboho Date: Tue, 18 Mar 2014 15:25:37 -0700 Subject: [PATCH] Fix table reset on pagination change We were getting an issue we were getting: 1) filtering to, say, 15 rows 2) moving to the last page 3) changing the pagination to more than 15 (or whatever) 4) no rows displayed This seemed to fix it. --- addons/pager/jquery.tablesorter.pager.js | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/pager/jquery.tablesorter.pager.js b/addons/pager/jquery.tablesorter.pager.js index 2ed93735..1b731dc6 100644 --- a/addons/pager/jquery.tablesorter.pager.js +++ b/addons/pager/jquery.tablesorter.pager.js @@ -542,6 +542,7 @@ $.data(table, 'pagerLastPage', p.page); $.data(table, 'pagerLastSize', p.size); p.totalPages = Math.ceil( p.totalRows / p.size ); + p.filteredPages = Math.ceil( p.filteredRows / p.size ); moveToPage(table, p); },