mirror of
https://github.com/Mottie/tablesorter.git
synced 2025-01-12 15:24:21 +00:00
Filter: Correctly use parsed data when set. Fixes #502
This commit is contained in:
parent
83402f040a
commit
9dd2d65281
2
dist/js/widgets/widget-filter.min.js
vendored
2
dist/js/widgets/widget-filter.min.js
vendored
File diff suppressed because one or more lines are too long
@ -1102,7 +1102,7 @@
|
|||||||
// ignore if filter is empty or disabled
|
// ignore if filter is empty or disabled
|
||||||
if ( data.filter ) {
|
if ( data.filter ) {
|
||||||
data.cache = data.cacheArray[ columnIndex ];
|
data.cache = data.cacheArray[ columnIndex ];
|
||||||
result = data.rawArray[ columnIndex ] || '';
|
result = data.parsed[ columnIndex ] ? data.cache : data.rawArray[ columnIndex ] || '';
|
||||||
data.exact = c.sortLocaleCompare ? ts.replaceAccents( result ) : result; // issue #405
|
data.exact = c.sortLocaleCompare ? ts.replaceAccents( result ) : result; // issue #405
|
||||||
data.iExact = !tsfRegex.type.test( typeof data.exact ) && wo.filter_ignoreCase ?
|
data.iExact = !tsfRegex.type.test( typeof data.exact ) && wo.filter_ignoreCase ?
|
||||||
data.exact.toLowerCase() : data.exact;
|
data.exact.toLowerCase() : data.exact;
|
||||||
|
Loading…
Reference in New Issue
Block a user