Permalink
Browse files

Added :handle as an option to sortable_element to restrict the drag h…

…andle to a given class #1642 [thejohnny]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1760 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 94209e2 commit b640a647603f869eca5cbecce3dbc94cb47447ad @dhh dhh committed Jul 7, 2005
Showing with 3 additions and 1 deletion.
  1. +2 −0 actionpack/CHANGELOG
  2. +1 −1 actionpack/lib/action_view/helpers/javascript_helper.rb
@@ -1,5 +1,7 @@
*SVN*
+* Added :handle as an option to sortable_element to restrict the drag handle to a given class #1642 [thejohnny]
+
* Added a bunch of script.aculo.us features: Effect.ScrollTo, to smoothly scroll the page to an element, better Firefox flickering handling on SlideUp/SlideDown, Removed a possible memory leak in IE with draggables, Added support for cancelling dragging my hitting ESC #1644 [Thomas Fuchs]
* Fixed that named routes didn't use the default values for action and possible other parameters #1534 [Nicholas Seckar]
@@ -441,7 +441,7 @@ def sortable_element(element_id, options = {})
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

0 comments on commit b640a64

Please sign in to comment.