Confirmedusers, editor, Administrators
886
edits
CreativeMD (talk | contribs) No edit summary |
CreativeMD (talk | contribs) No edit summary |
||
Line 299: | Line 299: | ||
// initially hide all children | // initially hide all children | ||
items.forEach(function (item) { | items.forEach(function (item) { | ||
if(item.children.length > 0 | if(item.children.length > 0) { | ||
if (item.el.attr("data-hide") == "true" || (item.el.attr("data-hide") != "true" && item.parent != undefined)) { | if (item.el.attr("data-hide") == "true" || (item.el.attr("data-hide") != "true" && item.parent != undefined)) { | ||
//item.el.find(".content").click(); | //item.el.find(".content").click(); | ||
item.showChildren = false; | if(window.location.hash != "#" + item.el.attr("data-tt-id")) | ||
{ | |||
item.showChildren = true; | |||
}else{ | |||
item.showChildren = false; | |||
$("." + item.el.attr("data-tt-id")).hide(); | |||
} | |||
} | } |