MediaWiki:Common.js: Difference between revisions

From Vintage Story Wiki
no edit summary
No edit summary
No edit summary
Line 69: Line 69:
item.el.closest("tr").addClass("level" + item.level);
item.el.closest("tr").addClass("level" + item.level);
if(item.parent == undefined)
item.el.addClass("odd");
var odd = true;
if (item.children.length > 0) {
if (item.children.length > 0) {
if(odd)
item.el.addClass("odd");
else
item.el.addClass("even");
odd = !odd;
item.el.addClass("tt-parent");
item.el.addClass("tt-parent");
item.showChildren = true;
item.showChildren = true;
Confirmedusers, editor, Administrators
886

edits