From 4c3d52ad66c2db582ad24e55adf88fa7cfdb39e6 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 26 Mar 2005 23:16:55 +0000 Subject: Updated to prototype.js 1.1.0 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1012 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_view/helpers/javascript_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'actionpack/lib/action_view/helpers/javascript_helper.rb') 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)' -- cgit v1.2.3