Skip to content

Commit

Permalink
Searches now have accents replaced if sortLocalCompare is true. Fixes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
Mottie committed Oct 10, 2013
1 parent 5ae88a9 commit 4bcf3b9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/jquery.tablesorter.widgets.js
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,8 @@ ts.addWidget({
}
xi = !wo.filter_regex.type.test(typeof x) && wo.filter_ignoreCase ? x.toLocaleLowerCase() : x;
ff = r; // if r is true, show that row
// replace accents - see #357
v[i] = c.sortLocaleCompare ? ts.replaceAccents(v[i]) : v[i];
// val = case insensitive, v[i] = case sensitive
val = wo.filter_ignoreCase ? v[i].toLocaleLowerCase() : v[i];
if (wo.filter_functions && wo.filter_functions[i]){
Expand Down

0 comments on commit 4bcf3b9

Please sign in to comment.