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:
larsbonczek 2019-03-21 23:42:42 +01:00 committed by Rob Garrison
parent db5a0d5419
commit c2532c69a9

View File

@ -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 );
}
});
},