mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
Filter: functions now get exact data, ignoring parsed flag. Fixes #1107
This commit is contained in:
parent
7aa5ba3617
commit
4e9905f26c
@ -1080,13 +1080,8 @@
|
|||||||
// 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 ];
|
||||||
// check if column data should be from the cell or from parsed data
|
result = data.rawArray[ columnIndex ] || '';
|
||||||
if ( wo.filter_useParsedData || data.parsed[ columnIndex ] ) {
|
data.exact = c.sortLocaleCompare ? ts.replaceAccents( result ) : result; // issue #405
|
||||||
data.exact = data.cache;
|
|
||||||
} else {
|
|
||||||
result = data.rawArray[ columnIndex ] || '';
|
|
||||||
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