summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-10-29 16:30:56 +0100
committerRobin Appelman <icewind@owncloud.com>2015-10-29 16:30:56 +0100
commit860e31a333ef075fe49a3e785fa19122600e895e (patch)
treeea73c8fd6f6a2f26655f5aa1c5a2f848572bfc6a /apps
parent530f7229e77d731eead7f1dc74296c62856a345b (diff)
downloadnextcloud-server-860e31a333ef075fe49a3e785fa19122600e895e.tar.gz
nextcloud-server-860e31a333ef075fe49a3e785fa19122600e895e.zip
dont trigger the scroll event of every single item we filter in the file list
Diffstat (limited to 'apps')
-rw-r--r--apps/files/js/filelist.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index c84d6c3c47d..b6e1f791edd 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -2117,15 +2117,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) {