diff --git a/addons/pager/jquery.tablesorter.pager.js b/addons/pager/jquery.tablesorter.pager.js index 4f3a3435..2cef4766 100644 --- a/addons/pager/jquery.tablesorter.pager.js +++ b/addons/pager/jquery.tablesorter.pager.js @@ -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 ); diff --git a/js/widgets/widget-pager.js b/js/widgets/widget-pager.js index 0519258d..ca004e1c 100644 --- a/js/widgets/widget-pager.js +++ b/js/widgets/widget-pager.js @@ -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' )