paulbidwell-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-May-18 14:06 UTC
Sortable within a Sortable
I''ve created a test page http://blog.destroyedentity.co.uk/test Basically I want for the items in the sidebar to be sorted, which works - but also the other two larger containers to be sorted too. The larger containers will sort if the second sortable.create isn''t there. Help!! (the red bit is the handle) Thanks!! Code: <div id="wrapper"> <div id="content"> <span class="handle"></span> </div> <div id="sidebar"> <span class="handle"></span> <div id="box1" class="box"> <span class="handle"></span> </div> <div id="box2" class="box"> <span class="handle"></span> </div> <div id="box3" class="box"> <span class="handle"></span> </div> </div> </div> <script type="text/javascript"> Sortable.create(''wrapper'', {tag:''div'',overlap:''horizontal'',handle:''handle'',constraint:false,treetag:''div''}); Sortable.create(''sidebar'', {tag:''div'',overlap:''vertical'',handle:''handle'',constraint:false}); </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 -~----------~----~----~----~------~----~------~--~---