aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/javascript_helper.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-03-26 23:16:55 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-03-26 23:16:55 +0000
commit4c3d52ad66c2db582ad24e55adf88fa7cfdb39e6 (patch)
treee0e4347d9321b047e936549d24dcb461dddaab89 /actionpack/lib/action_view/helpers/javascript_helper.rb
parent5d6bedb383024df2596a560de6d67337ff6cdb2f (diff)
downloadrails-4c3d52ad66c2db582ad24e55adf88fa7cfdb39e6.tar.gz
rails-4c3d52ad66c2db582ad24e55adf88fa7cfdb39e6.tar.bz2
rails-4c3d52ad66c2db582ad24e55adf88fa7cfdb39e6.zip
Updated to prototype.js 1.1.0
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1012 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_view/helpers/javascript_helper.rb')
-rw-r--r--actionpack/lib/action_view/helpers/javascript_helper.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_view/helpers/javascript_helper.rb b/actionpack/lib/action_view/helpers/javascript_helper.rb
index 6a0117a163..5b9c35376e 100644
--- a/actionpack/lib/action_view/helpers/javascript_helper.rb
+++ b/actionpack/lib/action_view/helpers/javascript_helper.rb
@@ -159,8 +159,8 @@ module ActionView
js_options['asynchronous'] = options[:type] != :synchronous
js_options['method'] = options[:method] if options[:method]
- js_options['position'] = options[:position] ? "'#{options[:position].to_s}'" : "'replace'"
- js_options['effect'] = ("\'" + options[:effect].to_s + "\'") if options[:effect]
+ js_options['insertion'] = "Insertion.#{options[:position].to_s.camelize}" if options[:position]
+ js_options['effect'] = "Effect.#{options[:effect].to_s.camelize}" if options[:effect]
if options[:form]
js_options['parameters'] = 'Form.serialize(this)'