-
Notifications
You must be signed in to change notification settings - Fork 753
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Filter does not work for some strings #1486
Comments
Hi @spoonerWeb! The issue appears to be the word "and" inside of Institution name. It's a key word used by the filter widget to combine search queries. Internally, I tried to bypass it, but it broke a few tests, so I think the easiest solution would be to change the "and" keyword (demo): $(function() {
// replace the "and" keyword
$.tablesorter.language.and = "&&";
var _table = $("table[data-filterable='data-filterable']");
_table.tablesorter({
ignoreCase: false,
// widget code contained in the jquery.tablesorter.widgets.js file
widgets: ["filter"],
widgetOptions: {
// extra css class name (string or array) added to the filter element (input or select)
filter_cssFilter: "form-control"
}
});
}); I'll take a look at the filter code and make the exact search have priority over the filter type searches. In the mean time, the above word around will fix the problem. Just make sure your users know that they need to use |
Fixed in v2.29.2... no alteration of the |
Thanks a lot for your fast and perfect support! Wish you some nice christmas days. |
Is there a plan for publishing the 2.29.2 version to npm? |
Oops! Done. |
I have a strange behaviour when using the filter for two different strings.
Please have a look at the column "Institution" at https://jsfiddle.net/72ekdkeh/, maybe you can tell me where to look for the bug. Or is it me?
The text was updated successfully, but these errors were encountered: