[Pkg-owncloud-commits] [owncloud] 02/69: dont trigger the scroll event of every single item we filter in the file list

David Prévot taffit at moszumanska.debian.org
Wed Nov 11 02:03:57 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 9a461d31e44df5c92436e977b9eb2812125c7aea
Author: Robin Appelman <icewind at owncloud.com>
Date:   Thu Oct 29 16:30:56 2015 +0100

    dont trigger the scroll event of every single item we filter in the file list
---
 apps/files/js/filelist.js | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index a83e4b0..d3a77eb 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -2129,15 +2129,16 @@
 				this.hideIrrelevantUIWhenNoFilesMatch();
 			}
 			var that = this;
+			filter = filter.toLowerCase();
 			this.$fileList.find('tr').each(function(i,e) {
 				var $e = $(e);
-				if ($e.data('file').toString().toLowerCase().indexOf(filter.toLowerCase()) === -1) {
+				if ($e.data('file').toString().toLowerCase().indexOf(filter) === -1) {
 					$e.addClass('hidden');
-					that.$container.trigger('scroll');
 				} else {
 					$e.removeClass('hidden');
 				}
 			});
+			that.$container.trigger('scroll');
 		},
 		hideIrrelevantUIWhenNoFilesMatch:function() {
 			if (this._filter && this.fileSummary.summary.totalDirs + this.fileSummary.summary.totalFiles === 0) {

-- 
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