Confirmedusers, editor, Administrators
886
edits
CreativeMD (talk | contribs) No edit summary |
CreativeMD (talk | contribs) No edit summary |
||
Line 42: | Line 42: | ||
if (item.parent !== undefined) { | if (item.parent !== undefined) { | ||
item.parent = index[item.parent]; | item.parent = index[item.parent]; | ||
item.level = parent.level+1; | item.level = item.parent.level+1; | ||
item.parent.children.push(item); | item.parent.children.push(item); | ||
} | } |