Filter: prevent js error if delayInit is set

This commit is contained in:
Mottie 2014-05-05 11:11:49 -05:00
parent 1eb19f4134
commit bbc81ef0a6

View File

@ -813,6 +813,8 @@ ts.filter = {
filterArray = $.isArray(filter),
filters = (filterArray) ? filter : ts.getFilters(table, true),
combinedFilters = (filters || []).join(''); // combined filter values
// prevent errors if delay init is set
if ($.isEmptyObject(c.cache)) { return; }
// add filter array back into inputs
if (filterArray) {
ts.setFilters( table, filters, false, skipFirst !== true );