This commit is contained in:
parent
abe5672490
commit
4deb98baaf
|
@ -259,8 +259,8 @@ var tree = {
|
||||||
url: config.context + '/files',
|
url: config.context + '/files',
|
||||||
data: JSON.stringify(request),
|
data: JSON.stringify(request),
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (data) {
|
success: function (result) {
|
||||||
if (data.succ) {
|
if (result.succ) {
|
||||||
var $dirRMenu = $("#dirRMenu");
|
var $dirRMenu = $("#dirRMenu");
|
||||||
var $fileRMenu = $("#fileRMenu");
|
var $fileRMenu = $("#fileRMenu");
|
||||||
var setting = {
|
var setting = {
|
||||||
|
@ -367,7 +367,7 @@ var tree = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
tree.fileTree = $.fn.zTree.init($("#files"), setting, data.data.children);
|
tree.fileTree = $.fn.zTree.init($("#files"), setting, result.data.children);
|
||||||
|
|
||||||
session.restore();
|
session.restore();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue