diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-06-26 14:34:13 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-06-26 14:34:13 +0000 |
commit | b17e17898133812abf1f9405cdc6db0ee3879a52 (patch) | |
tree | 67d0052e9308fd69e9ed3cf6003ff4636206d438 /actionpack/lib/action_view/helpers | |
parent | 521d5fdc72f776e255454a4229bfd1a110da8bc3 (diff) | |
download | rails-b17e17898133812abf1f9405cdc6db0ee3879a52.tar.gz rails-b17e17898133812abf1f9405cdc6db0ee3879a52.tar.bz2 rails-b17e17898133812abf1f9405cdc6db0ee3879a52.zip |
Renamed remote_sortable to sortable_element
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1526 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_view/helpers')
-rw-r--r-- | actionpack/lib/action_view/helpers/javascript_helper.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/actionpack/lib/action_view/helpers/javascript_helper.rb b/actionpack/lib/action_view/helpers/javascript_helper.rb index 7b857f4f18..a53b284c22 100644 --- a/actionpack/lib/action_view/helpers/javascript_helper.rb +++ b/actionpack/lib/action_view/helpers/javascript_helper.rb @@ -294,8 +294,7 @@ module ActionView # # You can change the behaviour with various options, see # http://script.aculo.us for more documentation. - # - def remote_sortable(element_id, options = {}) + def sortable_element(element_id, options = {}) options[:with] ||= "Sortable.serialize('#{element_id}')" options[:onUpdate] ||= "function(){" + remote_function(options) + "}" options.delete_if { |key, value| AJAX_OPTIONS.include?(key) } |