diff options
author | Thomas Fuchs <thomas@fesch.at> | 2006-08-07 11:08:32 +0000 |
---|---|---|
committer | Thomas Fuchs <thomas@fesch.at> | 2006-08-07 11:08:32 +0000 |
commit | a3b045a73e729e44719713084462825ef98f8bc0 (patch) | |
tree | 7eec271ae48be9ca9009f9a2916f980685e3ca12 /actionpack/lib | |
parent | 883c54a3173a39c3e0afaeb85c4b5537590201e8 (diff) | |
download | rails-a3b045a73e729e44719713084462825ef98f8bc0.tar.gz rails-a3b045a73e729e44719713084462825ef98f8bc0.tar.bz2 rails-a3b045a73e729e44719713084462825ef98f8bc0.zip |
Add support for the param_name parameter to the auto_complete_field helper. Fixes #5026 [david.a.williams@gmail.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4713 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_view/helpers/java_script_macros_helper.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/lib/action_view/helpers/java_script_macros_helper.rb b/actionpack/lib/action_view/helpers/java_script_macros_helper.rb index c256f2d88b..f7523b843f 100644 --- a/actionpack/lib/action_view/helpers/java_script_macros_helper.rb +++ b/actionpack/lib/action_view/helpers/java_script_macros_helper.rb @@ -140,6 +140,7 @@ module ActionView js_options[:callback] = "function(element, value) { return #{options[:with]} }" if options[:with] js_options[:indicator] = "'#{options[:indicator]}'" if options[:indicator] js_options[:select] = "'#{options[:select]}'" if options[:select] + js_options[:paramName] = "'#{options[:param_name]}'" if options[:param_name] js_options[:frequency] = "#{options[:frequency]}" if options[:frequency] { :after_update_element => :afterUpdateElement, |