$(function(){
$('#t_funinfo_tree').tree({
checkbox: true,
url:"<%=basePath %>/getT_FuninfoTree.do?pid='00000'",
onBeforeExpand:function(node)
{
$('#t_funinfo_tree').tree('options').url="<%=basePath %>/getT_FuninfoTree.do?pid="+node.id;
},
lines:true,
onLoadSuccess:function(node,data){
var t = $(this);
if(data){
$(data).each(function(index,d){
if(this.state == 'closed'){
t.tree('expandAll');
}
});
}
}
});
});
$('#t_funinfo_tree').tree({
checkbox: true,
url:"<%=basePath %>/getT_FuninfoTree.do?pid='00000'",
onBeforeExpand:function(node)
{
$('#t_funinfo_tree').tree('options').url="<%=basePath %>/getT_FuninfoTree.do?pid="+node.id;
},
lines:true,
onLoadSuccess:function(node,data){
var t = $(this);
if(data){
$(data).each(function(index,d){
if(this.state == 'closed'){
t.tree('expandAll');
}
});
}
}
});
});