MediaWiki:Common.js: Difference between revisions

From Vintage Story Wiki
no edit summary
No edit summary
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;
if(item.el.prop("invisible"))
item.parent.children.push(item);
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;
}
}
Confirmedusers, editor, Administrators
886

edits