MediaWiki:Common.js: Difference between revisions

From Vintage Story Wiki
no edit summary
No edit summary
No edit summary
Line 68: Line 68:
item.el.addClass("tt-parent");
item.el.addClass("tt-parent");
item.showChildren = true;
item.showChildren = true;
if(item.parent != undefined)
{
item.children.forEach(function (child) {
$(child.el).closest("tr").addClass(item.parent.el.attr("data-tt-id"));
}
}
}
}
Confirmedusers, editor, Administrators
886

edits