mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
fix to filter optimization tweak (#313), when searching for exact matches
This commit is contained in:
parent
da87350800
commit
61ae505fac
@ -416,6 +416,8 @@ ts.addWidget({
|
||||
// check for changes from beginning of filter; but ignore if there is a logical "or" in the string
|
||||
searchFiltered = (val || '').indexOf(r[i] || '') === 0 && searchFiltered && !/(\s+or\s+|\|)/g.test(val || '');
|
||||
});
|
||||
// can't search when all rows are hidden - this happens when looking for exact matches
|
||||
if (searchFiltered && $tr.filter(':visible').length === 0) { searchFiltered = false; }
|
||||
// loop through the rows
|
||||
for (j = 0; j < l; j++){
|
||||
r = $tr[j].className;
|
||||
|
Loading…
Reference in New Issue
Block a user