|
|
@ -519,26 +519,17 @@ define([
|
|
|
|
var resFolders = [];
|
|
|
|
var resFolders = [];
|
|
|
|
var findFoldersRec = function (folder, path) {
|
|
|
|
var findFoldersRec = function (folder, path) {
|
|
|
|
for (var key in folder) {
|
|
|
|
for (var key in folder) {
|
|
|
|
if (isFolder(folder[key])) {
|
|
|
|
if (isFolder(folder[key]) && !isSharedFolder(folder[key])) {
|
|
|
|
if (isSharedFolder(folder[key])) {
|
|
|
|
if (key.toLowerCase().indexOf(lValue) !== -1) {
|
|
|
|
// var name = getSharedFolderData(folder[key]).title || "";
|
|
|
|
resFolders.push({
|
|
|
|
// if (name.toLowerCase().indexOf(lValue) !== -1) {
|
|
|
|
id: null,
|
|
|
|
// resFolders.push(path.concat([key, ROOT]));
|
|
|
|
paths: [path.concat(key)],
|
|
|
|
// }
|
|
|
|
data: {
|
|
|
|
findFoldersRec(folder[key], path.concat([key, ROOT]));
|
|
|
|
title: key
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
});
|
|
|
|
if (key.toLowerCase().indexOf(lValue) !== -1) {
|
|
|
|
|
|
|
|
resFolders.push({
|
|
|
|
|
|
|
|
id: null,
|
|
|
|
|
|
|
|
paths: [path.concat(key)],
|
|
|
|
|
|
|
|
data: {
|
|
|
|
|
|
|
|
title: key
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
findFoldersRec(folder[key], path.concat(key));
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
findFoldersRec(folder[key], path.concat(key));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|