Ira Burton
2005-Jul-14 12:50 UTC
[Rails-spinoffs] Dropping on empty script.aculo.us sortable lists
I have a need to have two sortable lists with the ability to cross drop items between the list. I am using the script.aculo.us<http://script.aculo.us>library. All is well until I empty one of the lists completely out, at which time I cannot drop anything in to the empty list. I have used CSS to set the height of the <UL> so I have a large target to drop on. In my efforts to make it work, I have added <LI> elements that do not have the same class name I have defined in the only: attribute hoping that if there were any items in the list things would work. This failed as well. Any ideas? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails-spinoffs/attachments/20050714/ec5a6dec/attachment.html
Thomas Fuchs
2005-Jul-14 12:59 UTC
[Rails-spinoffs] Dropping on empty script.aculo.us sortable lists
With the current version, it''s not possible to do the drag-and-drop between lists with emtied-out lists, except with some tricks (like making the <UL> into a droppable when the last element exits). I plan to have that in in the next version of script.aculo.us, as time permits :) Note that the <UL> is not involved in the drag-and-drop operations at all, so it won''t help to change the size of it. Thomas Am 14.07.2005 um 19:15 schrieb Ira Burton:> I have a need to have two sortable lists with the ability to cross > drop items between the list. I am using the script.aculo.us > library. All is well until I empty one of the lists completely > out, at which time I cannot drop anything in to the empty list. I > have used CSS to set the height of the <UL> so I have a large > target to drop on. > > In my efforts to make it work, I have added <LI> elements that do > not have the same class name I have defined in the only: attribute > hoping that if there were any items in the list things would work. > This failed as well. > > Any ideas? > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails-spinoffs/attachments/20050714/277936ef/attachment.html