Confirmedusers, editor, Administrators
886
edits
CreativeMD (talk | contribs) No edit summary |
CreativeMD (talk | contribs) 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; |