Skip to content

Commit

Permalink
pass the correct key value to sortable.serialize
Browse files Browse the repository at this point in the history
git-svn-id: https://ennerchi.googlecode.com/svn/trunk/plugins/jrails@63 1bc9508b-f83e-0410-b78e-05f979d4f8d9
  • Loading branch information
aaronchi committed Jul 1, 2008
1 parent 44b1bb3 commit cda9abc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jrails.rb
Expand Up @@ -320,7 +320,7 @@ def sortable_element_js(element_id, options = {}) #:nodoc:
options.delete(:ghosting)

if options[:onUpdate] || options[:url]
options[:with] ||= "#{JQUERY_VAR}(this).sortable('serialize')"
options[:with] ||= "#{JQUERY_VAR}(this).sortable('serialize',{key:'#{element_id}'})"
options[:onUpdate] ||= "function(){" + remote_function(options) + "}"
end

Expand Down

0 comments on commit cda9abc

Please sign in to comment.