I was under the impression that onChange returned the entire serialized array every time. You were right and this does exactly what I need.
Thank you! On Mar 29, 5:34 am, Christophe Porteneuve <[EMAIL PROTECTED]> wrote: > Hey, > > [EMAIL PROTECTED] a écrit : > > > Is it possible for sortable to return the element of the ID that was > > moved? The serialize array isn't good enough, since if two things swap > > position I can't tell which was explicitly moved. > > Isn't that what the onChange callback is about? I believe it takes the > currently-dragged element as argument, and fires every time it changes > position during a drag. > > OTOH, I believe indeed that onUpdate occurs on drop, only when the > resulting order changed, and is passed the container element (the one > you made sortable). Maybe by combining both you can obtain what you need. > > -- > Christophe Porteneuve aka TDD > [EMAIL PROTECTED] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
