From 4bcf3b90033ef93c32f29f4f7510aaf069816276 Mon Sep 17 00:00:00 2001 From: Mottie Date: Wed, 9 Oct 2013 20:42:44 -0500 Subject: [PATCH] Searches now have accents replaced if sortLocalCompare is true. Fixes #357 --- js/jquery.tablesorter.widgets.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/jquery.tablesorter.widgets.js b/js/jquery.tablesorter.widgets.js index 09fa37b50..6cfbef3d3 100644 --- a/js/jquery.tablesorter.widgets.js +++ b/js/jquery.tablesorter.widgets.js @@ -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]){