diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 99804b1b9b..d1f68d98ea 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -2133,15 +2133,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) {