You need to call Sortable.create on the entire containing div again
not added elements and recreate the whole thing. Thats the only way
I''ve found to do it.
On Jul 9, 4:21 pm, bs9999 <bs9...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> Im using Scriptaculous v1.7 to perform sortable drag drop. My display
> uses:
>
>
Sortable.create(''DocumentContainer_1'',{tag:''div'',onUpdate:SortUpdate,
> handle:''Gripper'',constraint:false,scroll:window});
>
> There are about 5 div blocks with gripper hanldes next to them. Drag
> drop sorting works fine. Later i perform an AJAX update within the
> child region of the gripper div block updating it with new content.
> Im trying to ALSO apply Sortable.create to this new content like so:
>
>
Sortable.create(''Attachments_123'',{tag:''div'',overlap:''horizontal'',
> onUpdate:SortUpdateAttachment,
> only:''AttachmentFile'',constraint:false});
>
> Whats happening here is the inner contents is made draggable within
> its region amongst its 10 objects. The sorting works fine.
>
> The prob im having is once i apply the Sortable.create for the
> gripper child objects, the main level sortable objects stop working.
>
> Why does this occur?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---