aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederick Cheung <frederick.cheung@gmail.com>2008-12-21 12:12:42 +0000
committerPratik Naik <pratiknaik@gmail.com>2008-12-21 15:55:52 +0000
commit40247a8cbb1ec735ccd4d8490043345b86af31cc (patch)
tree7f0bb13121089127a265ff37bd603e2fe29d86cb
parent276ea48de96a0c4242139ec9323eefb6f254c2a1 (diff)
downloadrails-40247a8cbb1ec735ccd4d8490043345b86af31cc.tar.gz
rails-40247a8cbb1ec735ccd4d8490043345b86af31cc.tar.bz2
rails-40247a8cbb1ec735ccd4d8490043345b86af31cc.zip
Remove observe_field :on option as prototype no longer supports it [#1088 state:resolved]
-rw-r--r--actionpack/lib/action_view/helpers/prototype_helper.rb11
1 files changed, 0 insertions, 11 deletions
diff --git a/actionpack/lib/action_view/helpers/prototype_helper.rb b/actionpack/lib/action_view/helpers/prototype_helper.rb
index 7fab3102e7..18a209dcea 100644
--- a/actionpack/lib/action_view/helpers/prototype_helper.rb
+++ b/actionpack/lib/action_view/helpers/prototype_helper.rb
@@ -531,11 +531,6 @@ module ActionView
# is shorthand for
# :with => "'name=' + value"
# This essentially just changes the key of the parameter.
- # <tt>:on</tt>:: Specifies which event handler to observe. By default,
- # it's set to "changed" for text fields and areas and
- # "click" for radio buttons and checkboxes. With this,
- # you can specify it instead to be "blur" or "focus" or
- # any other event.
#
# Additionally, you may specify any of the options documented in the
# <em>Common options</em> section at the top of this document.
@@ -548,11 +543,6 @@ module ActionView
# :url => 'http://example.com/books/edit/1',
# :with => 'title'
#
- # # Sends params: {:book_title => 'Title of the book'} when the focus leaves
- # # the input field.
- # observe_field 'book_title',
- # :url => 'http://example.com/books/edit/1',
- # :on => 'blur'
#
def observe_field(field_id, options = {})
if options[:frequency] && options[:frequency] > 0
@@ -1094,7 +1084,6 @@ module ActionView
javascript << "#{options[:frequency]}, " if options[:frequency]
javascript << "function(element, value) {"
javascript << "#{callback}}"
- javascript << ", '#{options[:on]}'" if options[:on]
javascript << ")"
javascript_tag(javascript)
end