Remove unnecessary code

pull/1/head
yflory 6 years ago
parent b74e28fed3
commit eba32fe994

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

@ -2684,7 +2684,7 @@ define([
else { else {
$icon.append($folderIcon.clone()); $icon.append($folderIcon.clone());
$type.text(Messages.fm_folder); $type.text(Messages.fm_folder);
$('<a>').text(Messages.fm_openFolder || "Open folder").click(function (e) { $('<a>').text(Messages.fc_open).click(function (e) {
e.preventDefault(); e.preventDefault();
APP.displayDirectory(path); APP.displayDirectory(path);
}).appendTo($openDir); }).appendTo($openDir);

Loading…
Cancel
Save