[Pkg-owncloud-commits] [owncloud] 64/205: add filter-empty class if no search result in current folder
David Prévot
taffit at moszumanska.debian.org
Thu Jul 2 17:36:56 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch stable8
in repository owncloud.
commit 8eda9ae83cb8fe1c1333531e06bdd9fbdbb0b8f8
Author: Bjoern Schiessle <schiessle at owncloud.com>
Date: Mon Jun 22 12:09:39 2015 +0200
add filter-empty class if no search result in current folder
---
apps/files/js/filelist.js | 2 ++
1 file changed, 2 insertions(+)
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index b6f464b..400b172 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);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list