mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
No search on enter if filters are unchanged #1631
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.
This commit is contained in:
parent
db5a0d5419
commit
c2532c69a9
@ -1288,7 +1288,7 @@
|
||||
event.preventDefault();
|
||||
// init search with no delay
|
||||
$( this ).attr( 'data-lastSearchTime', new Date().getTime() );
|
||||
tsf.searching( table, eventType !== 'keypress', true, column );
|
||||
tsf.searching( table, eventType !== 'keypress' || event.which === tskeyCodes.enter, true, column );
|
||||
}
|
||||
});
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user