aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-01-12 22:48:25 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-01-12 22:48:25 +0100
commitd20a1bbdbfed2a5d64af2e4d8d839494f4a8d3d4 (patch)
tree930a8da61f5cbcfa16ba31f1ce50954edc013364 /apps/files/js
parentec70246be2cd2edb2bfb94e390eb18140b8522d5 (diff)
parent45a20744fcdc0e3706b415fcf2b240afa4a0012e (diff)
downloadnextcloud-server-d20a1bbdbfed2a5d64af2e4d8d839494f4a8d3d4.tar.gz
nextcloud-server-d20a1bbdbfed2a5d64af2e4d8d839494f4a8d3d4.zip
Merge pull request #13154 from owncloud/fix13141
don't show no files yet when mask is in place, fixes #13141
Diffstat (limited to 'apps/files/js')
-rw-r--r--apps/files/js/filelist.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index d6d5bcf912e..1d7252220bf 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -1674,7 +1674,9 @@
setFilter:function(filter) {
this._filter = filter;
this.fileSummary.setFilter(filter, this.files);
- this.hideIrrelevantUIWhenNoFilesMatch();
+ if (!this.$el.find('.mask').exists()) {
+ this.hideIrrelevantUIWhenNoFilesMatch();
+ }
var that = this;
this.$fileList.find('tr').each(function(i,e) {
var $e = $(e);
@@ -1690,13 +1692,15 @@
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');
- if ( $('#searchresults').length === 0 || $('#searchresults').hasClass('hidden')) {
+ if ( $('#searchresults').length === 0 || $('#searchresults').hasClass('hidden') ) {
this.$el.find('.nofilterresults').removeClass('hidden').
find('p').text(t('files', "No entries in this folder match '{filter}'", {filter:this._filter}, null, {'escape': false}));
}
} else {
this.$el.find('#filestable thead th').toggleClass('hidden', this.isEmpty);
- this.$el.find('#emptycontent').toggleClass('hidden', !this.isEmpty);
+ if (!this.$el.find('.mask').exists()) {
+ this.$el.find('#emptycontent').toggleClass('hidden', !this.isEmpty);
+ }
this.$el.find('.nofilterresults').addClass('hidden');
}
},