-
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
data-sorter="false" should bypass parser detection loop #629
Comments
Hi @thoughtafter! The parser type is still detected because in some cases a filter widget will need parsed data from a non-sortable column. For example, this would be true for dates within a column which need to be parsed in order to properly apply operators like The parser detection code shared above is only executed at table initialization and when an update is triggered ( |
Thank you for the prompt reply. It my current use cases, for all columns with data-sorter=false I also have data-filter=false. So this request could be changed to: avoid detectParserForColumn if both of these conditions are in place. Or, alternatively if some other mechanism could be used to skip the detection that would be fine too. Thank you. |
Sure, I could add this sort of enhancement. Let me do a little testing to make sure it won't cause any problems. |
It makes sense that the code within the core shouldn't be written to make exceptions for widgets. So, the solution I came up with was to add a new
This change is now available in the working branch; and I do plan on pushing out the next update by this weekend. |
data-sorter=false
should bypass the detection loop. In big tables this loop is a performance issue. I think the problem code is here (only cursory examination):Line 242 jquery.tablesorter.js
If
data-sorter=false
p is false which then callsdetectParserForColumn
. Ifdata-sorter
is deliberately set tofalse
this loop should be skipped because the user is asking for no sorting.The text was updated successfully, but these errors were encountered: