I'm using the sortable_element helper method, and for my app I want to
use a javascript snippet update the "position" field without going to
the server and saving the data right away.  Other things on the page
could be changing and the re-order needs to be a quick, lite action.

My the drag-to-sort works fine, and the JS function I call on complete
re-calculates the positions just fine, but even if I don't specify a
value for the URL it still makes the roundtrip to the server.

How can I prevent this?

<%= sortable_element :line_items, :tag => 'div', :ghosting =>
true, :complete => "sortLineItems()" %>

--

You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=.


Reply via email to