Displaying 1 result from an estimated 1 matches for "sortable_function".
2006 Jun 13
0
sortable trees and rjs updates
...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.create(''category_<%=Category.root.id%>'', {tree: true});
</script>
As noted, this works fine if I have already moved items around on the list.
But if I...