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 Mottie#1631
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.
This commit is contained in:
parent
44d90537cd
commit
7c6108bfa7
@ -887,7 +887,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