soft structure order

This commit is contained in:
Rueshyna 2012-12-27 14:36:51 +08:00
parent 34ed8ae39c
commit 9e07794cbc
2 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ module Admin::ItemsHelper
if !parent.children.entries.blank?
ret = ''
ret << "<ol class='#{'sortable' if parent.parent.nil?}'>"
children.each do |child|
children.reverse.each do |child|
ret << render_node_and_children(child)
end
ret << '</ol>'