Enter key twice on scriptaculous autocompleter
The autocompleter in scriptaculous has been implemented in such a way that you need to hit th开发者_如何学运维e enter key twice in order to perform the submit action. One for selecting from or hiding the autocomplete list, and one for submitting.
How do I make the autocompleter to submit on first enter key instead?
Create callback for afterUpdateElement
and place form submit in the end of it.
If it wouldn't work for you do the same thing for updateElement
.
精彩评论