MediaWiki:Common.js: Difference between revisions

From Vintage Story Wiki
no edit summary
No edit summary
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);
}
}
Confirmedusers, editor, Administrators
886

edits