mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
add filter-empty class if no search result in current folder
This commit is contained in:
parent
6adddb3095
commit
8eda9ae83c
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue