[Patch] Add duplicate search to keypress events instead of blur
|Reported by:||Dan G. Switzer, II||Owned by:||Ryan J Ollos|
I modded this plug-in to support duplicate search as the user's typing--which is a bit more effective and intuitive. To do this, I changed the events to use the keypress and keydown events. In order to improve performance, I use a debounce() technique to make sure that the AJAX call is only called after 1s of delay after the last key press.
I also set the tabindex to the elements in the suggestions to 32767 so that pressing [TAB] takes you to the next Trac field.
I'm attaching a patch of my changes.
Change History (7)
comment:2 Changed 6 years ago by
|Summary:||Add duplicate search to keypress events instead of blur → [Patch] Add duplicate search to keypress events instead of blur|