mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
Filter widget: fix js error on empty tables
This commit is contained in:
parent
a0275e34ad
commit
08b98084b0
@ -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();
|
||||||
|
2
js/jquery.tablesorter.widgets.min.js
vendored
2
js/jquery.tablesorter.widgets.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user