Filter: update cache when delayInit set. Fixes #1180

This commit is contained in:
Rob Garrison 2016-03-18 10:26:28 -05:00
parent 5d50d21087
commit 15f5cc19e0

View File

@ -834,7 +834,7 @@
// prevent errors if delay init is set
if ( $.isEmptyObject( c.cache ) ) {
// update cache if delayInit set & pager has initialized ( after user initiates a search )
if ( c.delayInit && c.pager && c.pager.initialized ) {
if ( c.delayInit && ( !c.pager || c.pager && c.pager.initialized ) ) {
ts.updateCache( c, function() {
tsf.checkFilters( table, false, skipFirst );
});