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:
larsbonczek 2019-05-10 21:12:14 +02:00 committed by Rob Garrison
parent 44d90537cd
commit 7c6108bfa7

View File

@ -887,7 +887,7 @@
event.preventDefault(); event.preventDefault();
// init search with no delay // init search with no delay
$( this ).attr( 'data-lastSearchTime', new Date().getTime() ); $( 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 );
} }
}); });
}, },