summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
Diffstat (limited to 'settings')
-rw-r--r--settings/js/apps.js18
1 files changed, 13 insertions, 5 deletions
diff --git a/settings/js/apps.js b/settings/js/apps.js
index d4f70d1ab7a..fd2b5a3c918 100644
--- a/settings/js/apps.js
+++ b/settings/js/apps.js
@@ -414,9 +414,12 @@ OC.Settings.Apps = OC.Settings.Apps || {
},
filter: function(query) {
- var $appList = $('#apps-list');
+ var $appList = $('#apps-list'),
+ $emptyList = $('#apps-list-empty');
if (query === '') {
$appList.find('.section').removeClass('hidden');
+ $appList.removeClass('hidden');
+ $emptyList.addClass('hidden');
return;
}
query = query.toLowerCase();
@@ -456,11 +459,16 @@ OC.Settings.Apps = OC.Settings.Apps || {
apps = _.uniq(apps, function(app){return app.id;});
- _.each(apps, function (app) {
- $('#app-' + app.id).removeClass('hidden');
- });
+ if (apps.length === 0) {
+ $appList.addClass('hidden');
+ $emptyList.removeClass('hidden');
+ } else {
+ _.each(apps, function (app) {
+ $('#app-' + app.id).removeClass('hidden');
+ });
- $('#searchresults').hide();
+ $('#searchresults').hide();
+ }
},
/**