mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
Pager: Show all rows, not pages. Fixes #1529
This commit is contained in:
parent
8b1ba542db
commit
4f9cf81e55
@ -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 );
|
||||
|
@ -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' )
|
||||
|
Loading…
Reference in New Issue
Block a user