mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
Filter: modify change event so a select searches w/o a carriage return. Fixes #650
This commit is contained in:
parent
ea48d95fbc
commit
7085eed6a6
@ -812,8 +812,7 @@ ts.filter = {
|
|||||||
ts.filter.searching( table, true, true );
|
ts.filter.searching( table, true, true );
|
||||||
})
|
})
|
||||||
.bind('search change keypress '.split(' ').join(c.namespace + 'filter '), function(event){
|
.bind('search change keypress '.split(' ').join(c.namespace + 'filter '), function(event){
|
||||||
// triggered change event won't fire a search unless the return key was pressed
|
if (event.which === 13 || event.type === 'search' || event.type === 'change') {
|
||||||
if (event.which === 13 || event.type === 'search') {
|
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
// init search with no delay
|
// init search with no delay
|
||||||
ts.filter.searching( table, false, true );
|
ts.filter.searching( table, false, true );
|
||||||
|
Loading…
Reference in New Issue
Block a user