what if we keep track in flash of all the lists that get updated - then
we can persist all the changes at the end and run the schedule routine
then.On 4/5/06, Larry White <[EMAIL PROTECTED]> wrote:
I have multiple drag and drop lists. If you sort within one list, you can pass the list back
I have multiple drag and drop lists. If you sort within one list, you can pass the list back to the server using:
<%= sortable_element 'task-list' << person.id.to_s ,
:url ="" { :action ="" "noop", :id => @user },
...
%>
Which causes this to be included in the
whoops. that syntax is wrong obviously - i was doing it from memory
width: 50px, etc.On 3/31/06, Larry White <[EMAIL PROTECTED]> wrote:
As it turns out, if you give the list a height and width then you can
drop on it when it's empty. You can do that with standard css, ala
ul.so
As it turns out, if you give the list a height and width then you can
drop on it when it's empty. You can do that with standard css, ala
ul.sortable-list {
width = 100px;
min-height = 50px;
}
Thank you for your response.
I think you also have to have the sortable's dropOnEmpty parameter
Does anyone have a good solution for using script.aculo.us drag and drop sorting with multiple lists when one or more of those lists might start out empty?I want to drop from list A to list B, but unless B starts out with something in it, there's no drop target there. My guess is that I could put
Hi, thanks. You're absolutely right. I don't know what i was thinking :(
Works fine now.
On 3/30/06, Claudio Gamboa <[EMAIL PROTECTED]> wrote:
Possible Larry White bugwhen you call Sortable.create on first time the element "task-list102"not existscall both Sortable.cre
I should have mentioned the behavior is consistent on ie6 and firefox under windows.
___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
I have two sortable lists, one after the other. I can drag from
the first to the second but not from the second to the first. The
behavior is consistent if n > 2. For example, I can drag from
1 to 2, 3 or 4 from 2 to 3 or 4 and from 3 to 4, but not in the reverse
order: I can't drag from the 4t