Filter widget: fix js error on empty tables

This commit is contained in:
Mottie 2014-02-19 18:21:16 -06:00
parent a0275e34ad
commit 08b98084b0
2 changed files with 2 additions and 2 deletions

View File

@ -850,7 +850,7 @@ ts.filter = {
anyMatchNotAllowedTypes = [ 'range', 'notMatch', 'operators' ], anyMatchNotAllowedTypes = [ 'range', 'notMatch', 'operators' ],
// parse columns after formatter, in case the class is added at that point // parse columns after formatter, in case the class is added at that point
parsed = c.$headers.map(function(columnIndex) { parsed = c.$headers.map(function(columnIndex) {
return c.parsers[columnIndex].parsed || ( ts.getData ? return c.parsers && c.parsers[columnIndex].parsed || ( ts.getData ?
ts.getData(c.$headers.filter('[data-column="' + columnIndex + '"]:last'), c.headers[columnIndex], 'filter') === 'parsed' : ts.getData(c.$headers.filter('[data-column="' + columnIndex + '"]:last'), c.headers[columnIndex], 'filter') === 'parsed' :
$(this).hasClass('filter-parsed') ); $(this).hasClass('filter-parsed') );
}).get(); }).get();

File diff suppressed because one or more lines are too long