59,13 → 59,25 |
|
$scope.openItem = function(item, ancestors) |
{ |
if(item.open && item.open==true) |
{ |
item.open=false; |
delete item.childs; |
} |
else |
{ |
$.getJSON("<%=request.getContextPath()%>/user/pagecontent/jorgeaux/section.jsp",{path:item.path}, |
function(json){ |
item.childs = json; |
item.open = true; |
angular.element($("#vfsApp")).scope().$apply(); |
}); |
} |
|
$.getJSON("<%=request.getContextPath()%>/user/pagecontent/jorgeaux/section.jsp",{path:item.path}, |
function(json){ |
item.childs = json; |
angular.element($("#vfsApp")).scope().$apply(); |
}); |
|
} |
|
|
}); |
|
</script> |