This commit is contained in:
Liang Ding 2015-10-20 18:40:26 +08:00
parent abe5672490
commit 4deb98baaf
1 changed files with 3 additions and 3 deletions

View File

@ -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();
} }