soft structure order
This commit is contained in:
parent
34ed8ae39c
commit
9e07794cbc
|
@ -32,7 +32,7 @@ module Admin::ItemsHelper
|
||||||
if !parent.children.entries.blank?
|
if !parent.children.entries.blank?
|
||||||
ret = ''
|
ret = ''
|
||||||
ret << "<ol class='#{'sortable' if parent.parent.nil?}'>"
|
ret << "<ol class='#{'sortable' if parent.parent.nil?}'>"
|
||||||
children.each do |child|
|
children.reverse.each do |child|
|
||||||
ret << render_node_and_children(child)
|
ret << render_node_and_children(child)
|
||||||
end
|
end
|
||||||
ret << '</ol>'
|
ret << '</ol>'
|
||||||
|
|
|
@ -3,4 +3,4 @@
|
||||||
</ol>
|
</ol>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
bindTreeDragHandle();
|
bindTreeDragHandle();
|
||||||
</script>
|
</script>
|
||||||
|
|
Reference in New Issue