Merge pull request #21512 from owncloud/allow-searching-by-app-id

Allow searching apps by ID
This commit is contained in:
Thomas Müller 2016-01-07 16:43:47 +01:00
commit 5b22ee4c05
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;