sserdyuk
2006-Aug-23 18:42 UTC
Can not move rows from right to left with two Sortables with containment set. Ideas?
This is the code I use. Moving parts from left to right is fine. When
dragging right to left, a rows gets picked up and starts moving but
target does not allow it to drop. Both lists are prepopulated with some
rows. I flipped sides and problem persisted. I am on scriptaculous
1.6.2. Confimed on Firefox/Linux and IE6/Windows. Any ideas?
<table><tr>
<td style="width:50%">
<ul id="ulselected" style="overflow-y: scroll; overflow-x:
hidden;
height: 300px; ">
<% selected_products.each do |prod| %>
<li id="s<%= prod.id %>"> <%= prod.name %>
</li>
<% end %>
</ul>
<%= sortable_element "ulselected", :containment =>
["ulselected","ulall"], :constraint => false %>
</td>
<td>
<ul id="ulall" style="overflow-y: scroll; overflow-x:
hidden;
height: 300px;">
<% (all_products-selected_products).each do |prod| %>
<li id="a<%= prod.id %>"> <%= prod.name %>
</li>
<% end %>
</ul>
<%= sortable_element "ulall", :containment =>
["ulall","ulselected"], :constraint => false %>
</td>
</tr></table>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---