-
Notifications
You must be signed in to change notification settings - Fork 754
Description
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
| // immediate search if user presses enter |
and here (
filter === false here because the event type was 'keypress')tablesorter/js/jquery.tablesorter.widgets.js
Lines 1366 to 1367 in fa56764
| if ( tsf.equalFilters(c, c.lastSearch, currentFilters) && filter !== false ) { | |
| return; |
The "filterStart" event gets fired here
tablesorter/js/jquery.tablesorter.widgets.js
Line 1382 in fa56764
| c.$table.triggerHandler( 'filterStart', [ filters ] ); |
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
| tsp.updatePageDisplay( c, false ); |
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.