Displaying 1 result from an estimated 1 matches for "category_".
Did you mean:
category
2006 Jun 13
0
sortable trees and rjs updates
...produce odd results if I haven''t.
My tree is a normal nested group of ul''s and I have the call to
Sortable.create in a partial so that I can refresh the list when I add
elements.
The rjs for creating a new element includes the following two lines:
page.insert_html :bottom, "category_#{Category.root.id}",
"<li>test<ul></ul></li>"
page.replace_html ''sortable'', :partial => ''sortable_function''
I''m calling Sortable.create using the following code for initial testing:
<script> Sortable.creat...