$("#FlatTree").jstree({
"core" : {
"data":{
"url":function(node){
return getRootPath() + "/data/standard/standard.do?method=GetTree";
},
"dataType": "json",
"data": function (node) {
return { 'id' : node.id};
}
}
},
"types" : {
"default" : {
"icon" : "fa fa-folder icon-state-warning icon-lg"
},
"file" : {
"icon" : "fa fa-file icon-state-warning icon-lg"
}
},
'plugins' : ['types','contextmenu']
})
.on("select_node.jstree", function(node,data) {
id = data.instance.get_node(data.selected[0]).id;
table.ajax.reload();
});