Hey, I have a Sortable set up with a tree, and I am having a bit of trouble getting this to work properly. Here''s the basic problem: When I have a list (ul) and it is empty (whether it is empty from the native HTML or from dragging elements out), I cannot put list elements in it. Am I doing something wrong? Is there a workaround? Should I submit a bug report? Thanks in advance! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
did you set dropOnEmpty for sortable options to true? http://wiki.script.aculo.us/scriptaculous/show/Sortable.create --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Sure did. Only options I have set: "tree: true, dropOnEmpty: true" On Jul 2, 2:28 pm, dasboe <bjo...-C/9M+bQ+NTFiszJb17IBaA@public.gmane.org> wrote:> did you set dropOnEmpty for sortable options to true? > > http://wiki.script.aculo.us/scriptaculous/show/Sortable.create--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
I did a bunch of searching and found that people have been having similar problems with the version I''m using (beta 3). I found two bug reports on this topic (and related patches for both), but neither of the patches work. I even found a comment on the wiki (http:// mir.aculo.us/2007/5/25/script-aculo-us-1-7-1-beta-3) with a fix, but that didn''t work either. Should I post another bug report? On Jul 2, 2:36 pm, Chippy <firemulholl...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Sure did. Only options I have set: "tree: true, dropOnEmpty: true" > > On Jul 2, 2:28 pm, dasboe <bjo...-C/9M+bQ+NTFiszJb17IBaA@public.gmane.org> wrote: > > > did you set dropOnEmpty for sortable options to true? > > >http://wiki.script.aculo.us/scriptaculous/show/Sortable.create--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Sorry for all the replys.. It occurs to me that all the bug reports and such that I saw were for problems with second and third level, whereas I''m having trouble even on the first level... On Jul 2, 4:45 pm, Chippy <firemulholl...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I did a bunch of searching and found that people have been having > similar problems with the version I''m using (beta 3). I found two bug > reports on this topic (and related patches for both), but neither of > the patches work. I even found a comment on the wiki (http:// > mir.aculo.us/2007/5/25/script-aculo-us-1-7-1-beta-3) with a fix, but > that didn''t work either. > > Should I post another bug report? > > On Jul 2, 2:36 pm, Chippy <firemulholl...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Sure did. Only options I have set: "tree: true, dropOnEmpty: true" > > > On Jul 2, 2:28 pm, dasboe <bjo...-C/9M+bQ+NTFiszJb17IBaA@public.gmane.org> wrote: > > > > did you set dropOnEmpty for sortable options to true? > > > >http://wiki.script.aculo.us/scriptaculous/show/Sortable.create--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Is your HTML object properly structured? As in are you using <li>? Sortable will automatically try to collect <li> tags by default to set up as the draggable objects. On Jul 2, 7:50 pm, Chippy <firemulholl...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Sorry for all the replys.. > It occurs to me that all the bug reports and such that I saw were for > problems with second and third level, whereas I''m having trouble even > on the first level... > > On Jul 2, 4:45 pm, Chippy <firemulholl...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > I did a bunch of searching and found that people have been having > > similar problems with the version I''m using (beta 3). I found two bug > > reports on this topic (and related patches for both), but neither of > > the patches work. I even found a comment on the wiki (http:// > > mir.aculo.us/2007/5/25/script-aculo-us-1-7-1-beta-3) with a fix, but > > that didn''t work either. > > > Should I post another bug report? > > > On Jul 2, 2:36 pm, Chippy <firemulholl...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > Sure did. Only options I have set: "tree: true, dropOnEmpty: true" > > > > On Jul 2, 2:28 pm, dasboe <bjo...-C/9M+bQ+NTFiszJb17IBaA@public.gmane.org> wrote: > > > > > did you set dropOnEmpty for sortable options to true? > > > > >http://wiki.script.aculo.us/scriptaculous/show/Sortable.create--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---