mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
Pager: use ajax flag when calculating filtered rows
This commit is contained in:
parent
6fcade5fd5
commit
e764dd0302
@ -145,7 +145,7 @@
|
|||||||
var normalized, indx, len,
|
var normalized, indx, len,
|
||||||
c = table.config,
|
c = table.config,
|
||||||
hasFilters = c.$table.hasClass('hasFilters');
|
hasFilters = c.$table.hasClass('hasFilters');
|
||||||
if (hasFilters && !p.ajaxUrl) {
|
if (hasFilters && !p.ajax) {
|
||||||
if (ts.isEmptyObject(c.cache)) {
|
if (ts.isEmptyObject(c.cache)) {
|
||||||
// delayInit: true so nothing is in the cache
|
// delayInit: true so nothing is in the cache
|
||||||
p.filteredRows = p.totalRows = c.$tbodies.eq(0).children('tr').not( p.countChildRows ? '' : '.' + c.cssChildRow ).length;
|
p.filteredRows = p.totalRows = c.$tbodies.eq(0).children('tr').not( p.countChildRows ? '' : '.' + c.cssChildRow ).length;
|
||||||
|
File diff suppressed because one or more lines are too long
2
dist/js/widgets/widget-pager.min.js
vendored
2
dist/js/widgets/widget-pager.min.js
vendored
File diff suppressed because one or more lines are too long
@ -417,7 +417,7 @@
|
|||||||
wo = c.widgetOptions,
|
wo = c.widgetOptions,
|
||||||
p = c.pager,
|
p = c.pager,
|
||||||
hasFilters = c.$table.hasClass( 'hasFilters' );
|
hasFilters = c.$table.hasClass( 'hasFilters' );
|
||||||
if ( hasFilters && !wo.pager_ajaxUrl ) {
|
if ( hasFilters && !p.ajax ) {
|
||||||
if ( $.isEmptyObject( c.cache ) ) {
|
if ( $.isEmptyObject( c.cache ) ) {
|
||||||
// delayInit: true so nothing is in the cache
|
// delayInit: true so nothing is in the cache
|
||||||
p.filteredRows = p.totalRows = c.$tbodies.eq( 0 )
|
p.filteredRows = p.totalRows = c.$tbodies.eq( 0 )
|
||||||
|
Loading…
Reference in New Issue
Block a user