aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/javascript_helper.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-07-07 14:34:26 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-07-07 14:34:26 +0000
commitb640a647603f869eca5cbecce3dbc94cb47447ad (patch)
tree23c45189121e45aa0335a6f14d35c21ae28fa5ae /actionpack/lib/action_view/helpers/javascript_helper.rb
parent94209e2fb7f244be5da2f208c2e5dacd2fede47e (diff)
downloadrails-b640a647603f869eca5cbecce3dbc94cb47447ad.tar.gz
rails-b640a647603f869eca5cbecce3dbc94cb47447ad.tar.bz2
rails-b640a647603f869eca5cbecce3dbc94cb47447ad.zip
Added :handle as an option to sortable_element to restrict the drag handle to a given class #1642 [thejohnny]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1760 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.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/javascript_helper.rb b/actionpack/lib/action_view/helpers/javascript_helper.rb
index 1512ea0720..c0ef3e3f99 100644
--- a/actionpack/lib/action_view/helpers/javascript_helper.rb
+++ b/actionpack/lib/action_view/helpers/javascript_helper.rb
@@ -441,7 +441,7 @@ module ActionView
options[:onUpdate] ||= "function(){" + remote_function(options) + "}"
options.delete_if { |key, value| AJAX_OPTIONS.include?(key) }
- [:tag, :overlap, :constraint].each do |option|
+ [:tag, :overlap, :constraint, :handle].each do |option|
options[option] = "'#{options[option]}'" if options[option]
end