Fix folders doesn't get listed when performing a filtering in file section, issue #1667

(cherry picked from commit 8a8b88a)
This commit is contained in:
Marc Hannappel 2016-12-21 09:44:24 +01:00 committed by Gina Häußge
parent 6c9cac0eca
commit dc3182c872

View file

@ -708,11 +708,12 @@ $(function() {
return false;
}
if (entry["type"] == "folder" && entry["children"]) {
var success = entry["name"].toLocaleLowerCase().indexOf(query) > -1;
if (!success && entry["type"] == "folder" && entry["children"]) {
return _.any(entry["children"], recursiveSearch);
} else {
return entry["name"].toLocaleLowerCase().indexOf(query) > -1;
}
return success;
};
self.listHelper.changeSearchFunction(recursiveSearch);