Fix folders doesn't get listed when performing a filtering in file section, issue #1667
This commit is contained in:
parent
726787e4db
commit
8a8b88af13
1 changed files with 4 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue