Confirmedusers, editor, Administrators
886
edits
CreativeMD (talk | contribs) No edit summary |
CreativeMD (talk | contribs) No edit summary |
||
Line 148: | Line 148: | ||
item.parent = index[item.parent]; | item.parent = index[item.parent]; | ||
item.level = item.parent.level+1; | item.level = item.parent.level+1; | ||
item.parent.children.push(item); | |||
} | } | ||
}); | }); | ||
Line 215: | Line 214: | ||
items.forEach(function (item) { | items.forEach(function (item) { | ||
if (item.parent === undefined) { | if (item.parent === undefined || item.el.prop("invisible")) { | ||
return; | return; | ||
} | } |