MediaWiki:Common.js: Difference between revisions

From Vintage Story Wiki
no edit summary
No edit summary
No edit summary
Line 364: Line 364:


// initially hide all children
// initially hide all children
/*items.forEach(function (item) {
items.forEach(function (item) {
if(item.children.length > 0) {
if(item.children.length > 0) {
if (item.el.attr("data-hide") == "true" || item.parent != undefined) {
if (item.el.attr("data-hide") == "true" || (item.parent != undefined && item.el.attr("data-hide") != "false")) {
//item.el.find(".content").click();
//item.el.find(".content").click();
if(window.location.hash != "#" + item.el.attr("data-tt-id"))
if(window.location.hash != "#" + item.el.attr("data-tt-id"))
Line 382: Line 382:
}
}
}
}
});*/
});
updateLines();
updateLines();
Confirmedusers, editor, Administrators
886

edits