mirror of
https://github.com/Mottie/tablesorter.git
synced 2025-01-12 15:24:21 +00:00
Filter: attempt to fix #1152
This commit is contained in:
parent
30ee40c33f
commit
0a18019581
@ -816,9 +816,6 @@
|
||||
if ( event.which === tskeyCodes.escape ) {
|
||||
// make sure to restore the last value on escape
|
||||
this.value = wo.filter_resetOnEsc ? '' : c.lastSearch[column];
|
||||
// live search
|
||||
} else if ( liveSearch === false ) {
|
||||
return;
|
||||
// don't return if the search value is empty ( all rows need to be revealed )
|
||||
} else if ( this.value !== '' && (
|
||||
// liveSearch can contain a min value length; ignore arrow and meta keys, but allow backspace
|
||||
@ -827,6 +824,11 @@
|
||||
( event.which !== tskeyCodes.enter && event.which !== tskeyCodes.backSpace &&
|
||||
( event.which < tskeyCodes.space || ( event.which >= tskeyCodes.left && event.which <= tskeyCodes.down ) ) ) ) ) {
|
||||
return;
|
||||
// live search
|
||||
} else if ( liveSearch === false ) {
|
||||
if ( this.value !== '' && event.which !== tskeyCodes.enter ) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
// change event = no delay; last true flag tells getFilters to skip newest timed input
|
||||
tsf.searching( table, true, true, column );
|
||||
|
Loading…
Reference in New Issue
Block a user