summaryrefslogtreecommitdiffstats
path: root/apps/files/js/filelist.js
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2014-12-19 00:49:05 +0100
committerJörn Friedrich Dreyer <jfd@butonic.de>2015-01-02 10:28:41 +0100
commit80ded08ec46d56476f20f3e71d5bb115e070f228 (patch)
tree1d9cad10234d91f2ef10f76781f540b784395cfe /apps/files/js/filelist.js
parent74fd31d9bfaf2793290594d6eccf707cdcad9d02 (diff)
downloadnextcloud-server-80ded08ec46d56476f20f3e71d5bb115e070f228.tar.gz
nextcloud-server-80ded08ec46d56476f20f3e71d5bb115e070f228.zip
hide irrelevant stuff in empty filelist
Diffstat (limited to 'apps/files/js/filelist.js')
-rw-r--r--apps/files/js/filelist.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index 910441bf267..e01a029bc97 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -1669,7 +1669,7 @@
setFilter:function(filter) {
this._filter = filter;
this.fileSummary.setFilter(filter, this.files);
- this.hideHeaderWhenNoFilesMatch();
+ this.hideIrrelevantUIWhenNoFilesMatch();
var that = this;
this.$fileList.find('tr').each(function(i,e) {
var $e = $(e);
@@ -1681,11 +1681,13 @@
}
});
},
- hideHeaderWhenNoFilesMatch:function() {
+ hideIrrelevantUIWhenNoFilesMatch:function() {
if (this._filter && this.fileSummary.summary.totalDirs + this.fileSummary.summary.totalFiles === 0) {
this.$el.find('#filestable thead th').addClass('hidden');
+ this.$el.find('#emptycontent').addClass('hidden');
} else {
- this.$el.find('#filestable thead th').removeClass('hidden');
+ this.$el.find('#filestable thead th').toggleClass('hidden', this.isEmpty);
+ this.$el.find('#emptycontent').toggleClass('hidden', !this.isEmpty);
}
},
/**