function selectPath(obj,callback){
function remoteDateSource (options,callback) {
var path;
if(options.extendsMap == null){
path = "";
}else {
path = options.extendsMap.path;
}
$.ajax({
url : "${ctx}/queryHostDir",
data : {"serverIP" : serviceIp, "path" : path},
type : 'POST',
dataType : 'json',
success : function(response) {
callback({
data : response.obj
});
},
error : function(response) {
console.log("error");
}
});
}
flow_tree = $('#tree1').ace_tree({
dataSource : remoteDateSource,
loadingHTML:'<div class="tree-loading"><i class="ace-icon fa fa-refresh fa-spin blue"></i></div>',
'folder-open-icon' : 'ace-icon tree-plus',
'folder-close-icon' : 'ace-icon tree-minus' ,
'cacheItems' : true,
'selectable' : true,
'itemSelect' : false,
'folderSelect': true,
'multiSelect': false
});
}