diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2015-06-22 12:09:39 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2015-06-22 12:13:05 +0200 |
commit | 8eda9ae83cb8fe1c1333531e06bdd9fbdbb0b8f8 (patch) | |
tree | 4d8db4cc06d1f41cd549110e8443f698c56bb5f0 /apps/files/js/filelist.js | |
parent | 6adddb3095abc447c30fb3f8c46c26507895c660 (diff) | |
download | nextcloud-server-8eda9ae83cb8fe1c1333531e06bdd9fbdbb0b8f8.tar.gz nextcloud-server-8eda9ae83cb8fe1c1333531e06bdd9fbdbb0b8f8.zip |
add filter-empty class if no search result in current folder
Diffstat (limited to 'apps/files/js/filelist.js')
-rw-r--r-- | apps/files/js/filelist.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index b6f464bfd29..400b1729dd9 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -1708,11 +1708,13 @@ 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'); + $('#app-content-files').addClass('filter-empty'); 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 { + $('#app-content-files').removeClass('filter-empty'); this.$el.find('#filestable thead th').toggleClass('hidden', this.isEmpty); if (!this.$el.find('.mask').exists()) { this.$el.find('#emptycontent').toggleClass('hidden', !this.isEmpty); |