Confirmedusers, editor, Administrators
886
edits
CreativeMD (talk | contribs) No edit summary |
CreativeMD (talk | contribs) No edit summary |
||
Line 76: | Line 76: | ||
if (item.children.length > 0) { | if (item.children.length > 0) { | ||
if(odd) | item.children.forEach(function (child) { | ||
if(odd) | |||
child.el.closest("tr").addClass("odd"); | |||
else | |||
child.el.closest("tr").addClass("even"); | |||
odd = !odd; | |||
} | |||
item.el.addClass("tt-parent"); | item.el.addClass("tt-parent"); |