From 56ae6550b8a7e24bc731f25b66fc3a5d246e221c Mon Sep 17 00:00:00 2001 From: "Erik St. Martin" Date: Mon, 25 Jan 2010 23:46:54 -0500 Subject: adding support for :disable_with to button_to_remote --- actionpack/lib/action_view/helpers/ajax_helper.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'actionpack') diff --git a/actionpack/lib/action_view/helpers/ajax_helper.rb b/actionpack/lib/action_view/helpers/ajax_helper.rb index ae37802f02..e79801c46d 100644 --- a/actionpack/lib/action_view/helpers/ajax_helper.rb +++ b/actionpack/lib/action_view/helpers/ajax_helper.rb @@ -319,6 +319,10 @@ module ActionView add_confirm_to_attributes!(attributes, confirm) end + if disable_with = options.delete(:disable_with) + add_disable_with_to_attributes!(attributes, disable_with) + end + attributes.merge!(extract_remote_attributes!(options)) tag(:input, attributes) -- cgit v1.2.3