crowdint / rails3-jquery-autocomplete

An easy and unobtrusive way to use jQuery's autocomplete with Rails 3
http://rubygems.org/gems/rails3-jquery-autocomplete
MIT License
917 stars 367 forks source link

Allow for autoFocus option based on data attribute #272

Closed adrianbautista closed 10 years ago

adrianbautista commented 10 years ago

To turn on the autoFocus option, all you need to add now to one's view is:

= f.autocomplete_field :skill_list, autocomplete_skill_name_users_path, data: { 'auto-focus' => true }
kcollignon commented 10 years ago

I hope this gets merged in!

bigtunacan commented 10 years ago

Can you add documentation to the README and I will merge the pull request. I don't want to add in undocumented features for new users.

adrianbautista commented 10 years ago

Hey @bigtunacan, I've updated the README to include an explanation of the new auto-focus option. Thanks!

bigtunacan commented 10 years ago

Thanks for the update.