Hi!
I''m using multiple sortables in one page, and most of them I update
with onUpdate function which works fine. However, in one case, the same
elements that are sortable needs to be droppable (to move them between
groups). And in that case I need to use onChange function to update
database on every change or everything gets mixed up when I move a
sortable to a different group.
The problem that I get with onChange is that in some cases (I can''t
really tell when) it gets called twice. First time with correct
serialize value, and second time with old serialize value, which
overwrites the correct value.
The result is that the data written in the database is wrong - old.
Am I doing something wrong, or is there maybe a problem with the script?
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---