-
Notifications
You must be signed in to change notification settings - Fork 754
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
"pagerComplete" event does not get executed if filters are unchanged #1631
Comments
Hi @larsbonczek! Thanks for investigating this problem! I apologize for not responding sooner. I would greatly appreciate a PR with a fix. Maybe prevent setting the |
Fixing Mottie#1631 by not treating the enter key as a key press and thus not executing the search if enter is pressed while no filters were changed.
Is it okay if I submit a pull request without having really tested it? I still have my solution from a month ago somewhere, but I don't have time to go back and test it again right now. |
Fixing Mottie#1631 by not treating the enter key as a key press and thus not executing the search if enter is pressed while no filters were changed.
Fixing #1631 by not treating the enter key as a key press and thus not executing the search if enter is pressed while no filters were changed.
Fixing #1631 by not treating the enter key as a key press and thus not executing the search if enter is pressed while no filters were changed.
Thanks again! |
When I press enter inside a filter input, the search gets executed even if the filters have not changed.
See here
tablesorter/js/jquery.tablesorter.widgets.js
Line 1275 in fa56764
and here (
filter === false
here because the event type was 'keypress')tablesorter/js/jquery.tablesorter.widgets.js
Lines 1366 to 1367 in fa56764
The "filterStart" event gets fired here
tablesorter/js/jquery.tablesorter.widgets.js
Line 1382 in fa56764
but the "pagerComplete" event never gets fired for some reason: (The
false
means that the "pagerComplete" event shouldn't be fired - but why?)tablesorter/js/widgets/widget-pager.js
Line 279 in fa56764
This causes my loading animation to be displayed on "filterStart", but never to get removed.
EDIT It wasn't the "filterEnd" event that didn't get fired as I first thought but the "pagerComplete" event.
The text was updated successfully, but these errors were encountered: