Allow searching apps by ID

This commit is contained in:
Joas Schilling 2016-01-07 16:33:25 +01:00
parent 629061d00a
commit 3a494033d2
1 changed files with 5 additions and 0 deletions

View File

@ -422,6 +422,11 @@ OC.Settings.Apps = OC.Settings.Apps || {
return app.name.toLowerCase().indexOf(query) !== -1;
});
// App ID
apps = apps.concat(_.filter(OC.Settings.Apps.State.apps, function (app) {
return app.id.toLowerCase().indexOf(query) !== -1;
}));
// App Description
apps = apps.concat(_.filter(OC.Settings.Apps.State.apps, function (app) {
return app.description.toLowerCase().indexOf(query) !== -1;