Confirmedusers, editor, Administrators
886
edits
CreativeMD (talk | contribs) No edit summary |
CreativeMD (talk | contribs) No edit summary |
||
Line 68: | Line 68: | ||
item.el.addClass("tt-parent"); | item.el.addClass("tt-parent"); | ||
item.showChildren = true; | item.showChildren = true; | ||
item.el.closest("tr").before("< | item.el.closest("tr").before("<div id='content_" + item.el.attr("data-tt-id") + "' style='border: 1px solid 1'>Content"); | ||
item.children[item.children.length-1].el.closest("tr").after("</ | item.children[item.children.length-1].el.closest("tr").after("</div>"); //Needs to be changed | ||
} | } | ||
}); | }); | ||
Line 127: | Line 127: | ||
else { | else { | ||
// show direct children | // show direct children | ||
item.showChildren = true; | |||
item.children.forEach(function (child) { | /*item.children.forEach(function (child) { | ||
$(child.el).closest("tr").removeClass("tt-hide"); | $(child.el).closest("tr").removeClass("tt-hide"); | ||
});*/ | });*/ |