Brian Palmer
2005-Aug-23 16:33 UTC
[Rails-spinoffs] [script.aculo.us][Patch] Autocompleter.selectEntry()
I made a small patch to controls.js. I moved the line this.element.focus() from the end of selectEntry() to the end of updateElement(). The rationale is that if the user uses the options hash to override updateElement, he/she can choose which element to focus next, instead of being forced to the default. You can see an example on the wiki page (still under construction) http://wiki.rubyonrails.com/rails/show/ HowToUseAdvancedAutocompleteFeatures It seems like a harmless enough patch. -- Brian Palmer -------------- next part -------------- A non-text attachment was scrubbed... Name: moved_focus_on_selectEntry.diff Type: application/octet-stream Size: 517 bytes Desc: not available Url : http://wrath.rubyonrails.org/pipermail/rails-spinoffs/attachments/20050823/e4d462ed/moved_focus_on_selectEntry.obj