mirror of
https://github.com/Mottie/tablesorter.git
synced 2025-01-12 15:24:21 +00:00
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.
This commit is contained in:
parent
86b7ce09e2
commit
554c5269f7
@ -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);
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user