Confirmedusers, editor, Administrators
886
edits
CreativeMD (talk | contribs) No edit summary |
CreativeMD (talk | contribs) No edit summary |
||
Line 71: | Line 71: | ||
if(item.parent == undefined) | if(item.parent == undefined) | ||
item.el.addClass("odd"); | item.el.closest("tr").addClass("odd"); | ||
var odd = true; | var odd = true; | ||
Line 77: | Line 77: | ||
if (item.children.length > 0) { | if (item.children.length > 0) { | ||
if(odd) | if(odd) | ||
item.el.addClass("odd"); | item.el.closest("tr").addClass("odd"); | ||
else | else | ||
item.el.addClass("even"); | item.el.closest("tr").addClass("even"); | ||
odd = !odd; | odd = !odd; | ||
item.el.addClass("tt-parent"); | item.el.addClass("tt-parent"); | ||
item.showChildren = true; | item.showChildren = true; |