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 15:01:11 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-03-26 15:01:11 +0000
commitae5f3c74883ae2ea5c0d19151acc8fb33e5fd52c (patch)
tree325d1c15ec1265119aca071a5a07e624cc334e03 /actionpack/lib/action_view/helpers/javascript_helper.rb
parent9ca9f95aee3f44acd3a5ee1cb3e2b20df39ee92b (diff)
downloadrails-ae5f3c74883ae2ea5c0d19151acc8fb33e5fd52c.tar.gz
rails-ae5f3c74883ae2ea5c0d19151acc8fb33e5fd52c.tar.bz2
rails-ae5f3c74883ae2ea5c0d19151acc8fb33e5fd52c.zip
Added :highlight effect to do YFT automatically
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1004 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.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/javascript_helper.rb b/actionpack/lib/action_view/helpers/javascript_helper.rb
index 5a07ebdc6e..513074cddd 100644
--- a/actionpack/lib/action_view/helpers/javascript_helper.rb
+++ b/actionpack/lib/action_view/helpers/javascript_helper.rb
@@ -159,7 +159,8 @@ module ActionView
js_options['asynchronous'] = options[:type] != :synchronous
js_options['method'] = options[:method] if options[:method]
-
+ js_options['effect'] = ("\'"+options[:effect].to_s+"\'") if options[:effect]
+
if options[:form]
js_options['parameters'] = 'Form.serialize(this)'
elsif options[:with]