mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
Filter: prevent js error if delayInit is set
This commit is contained in:
parent
1eb19f4134
commit
bbc81ef0a6
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user