aboutsummaryrefslogtreecommitdiffstats
path: root/public/assets/refinery/tree-4bd54dfe43656bece5b36e31db2ea744.js
blob: 36f6a80873ff48caffc9eee6b7e0bee82ed83791 (plain) (blame)
1
$(function(){$(".tree").on("click",".toggle",function(a){a.preventDefault();var e=$(this).parents("li:first"),n=e.find(".icon.toggle"),d=e.find(".nested");if(n.hasClass("expanded"))n.removeClass("expanded"),d.slideUp();else{var s=d.data("ajax-content");e.addClass("loading"),d.load(s,function(){d.find("li:last").addClass("branch_end"),n.addClass("expanded"),init_tooltips(),d.slideDown(),e.removeClass("loading")})}})});