Pager: use ajax flag when calculating filtered rows

This commit is contained in:
Rob Garrison 2016-08-17 12:04:28 -05:00
parent 6fcade5fd5
commit e764dd0302
No known key found for this signature in database
GPG Key ID: 0A42D160D71978E1
4 changed files with 4 additions and 4 deletions

View File

@ -145,7 +145,7 @@
var normalized, indx, len,
c = table.config,
hasFilters = c.$table.hasClass('hasFilters');
if (hasFilters && !p.ajaxUrl) {
if (hasFilters && !p.ajax) {
if (ts.isEmptyObject(c.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;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -417,7 +417,7 @@
wo = c.widgetOptions,
p = c.pager,
hasFilters = c.$table.hasClass( 'hasFilters' );
if ( hasFilters && !wo.pager_ajaxUrl ) {
if ( hasFilters && !p.ajax ) {
if ( $.isEmptyObject( c.cache ) ) {
// delayInit: true so nothing is in the cache
p.filteredRows = p.totalRows = c.$tbodies.eq( 0 )