[Patch] Add duplicate search to keypress events instead of blur
|Reported by:||DanSwitzer2||Owned by:||rjollos|
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)
Changed 4 years ago by DanSwitzer2
comment:1 Changed 4 years ago by rjollos
- Owner changed from gregmac to rjollos
- Status changed from new to assigned
comment:2 Changed 4 years ago by rjollos
- Summary changed from Add duplicate search to keypress events instead of blur to [Patch] Add duplicate search to keypress events instead of blur