Hi, When i add a new <li> to the <ul> tag using Insertion.Bottom() the <li> is visible but the sortable functionality is gone!!! I wonder how I could enable that sortable for the <ul> again. Thanks Doug --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Christophe Porteneuve
2006-Nov-01 10:16 UTC
Re: Sortable Does Not Recognize new Li Element
Hey Doug, Doug a écrit :> When i add a new <li> to the <ul> tag using Insertion.Bottom() > the <li> is visible but the sortable functionality is gone!!! > I wonder how I could enable that sortable for the <ul> again.Well, creating a sortable statically creates droppables/draggables over existing DOM elements. New elements in there are out of the game, you see. So if you need to update the contents of a sortable, you must destroy+create the sortable all over again (which is close to instantaneous, btw, unless you have a very large amount of items in there). See this thread: http://groups.google.com/group/rubyonrails-spinoffs/browse_thread/thread/62591e53cec164f3/fd34a112aa5dfadb -- Christophe Porteneuve a.k.a. TDD "[They] did not know it was impossible, so they did it." --Mark Twain Email: tdd-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---