Pager: Show all rows, not pages. Fixes #1529

This commit is contained in:
Rob Garrison 2018-03-19 05:59:31 -05:00
parent 8b1ba542db
commit 4f9cf81e55
2 changed files with 8 additions and 7 deletions

View File

@ -1,6 +1,6 @@
/*!
* tablesorter (FORK) pager plugin
* updated 2018-03-18 (v2.30.0)
* updated 2018-03-19 (v2.30.1)
*/
/*jshint browser:true, jquery:true, unused:false */
;(function($) {
@ -692,12 +692,12 @@
$.data(table, 'pagerLastPage', p.page);
$.data(table, 'pagerLastSize', p.size);
p.page = 0;
p.size = p.totalPages;
p.size = p.totalRows;
p.totalPages = 1;
$(table)
.addClass('pagerDisabled')
.removeAttr('aria-describedby')
.find('tr.pagerSavedHeightSpacer').remove();
.addClass('pagerDisabled')
.removeAttr('aria-describedby')
.find('tr.pagerSavedHeightSpacer').remove();
renderTable(table, table.config.rowsCopy, p);
p.isDisabled = true;
ts.applyWidget( table );

View File

@ -1,4 +1,4 @@
/*! Widget: Pager - updated 2018-03-18 (v2.30.0) */
/*! Widget: Pager - updated 2018-03-19 (v2.30.1) */
/* Requires tablesorter v2.8+ and jQuery 1.7+
* by Rob Garrison
*/
@ -1020,7 +1020,8 @@
$.data( table, 'pagerLastPage', p.page );
$.data( table, 'pagerLastSize', p.size );
p.page = 0;
p.size = p.totalPages;
p.size = p.totalRows;
console.log(p.totalRows, p.totalPages);
p.totalPages = 1;
c.$table
.addClass( 'pagerDisabled' )