From 6eced42b7a40f5b0ea0489244583219d0ee2e7af Mon Sep 17 00:00:00 2001 From: "John Molakvoæ (skjnldsv)" Date: Mon, 3 Aug 2020 16:50:39 +0200 Subject: Remove outdated legacy search scripts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- apps/files/js/filelist.js | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'apps/files/js/filelist.js') diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index cb93ded939e..eee24b648f3 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -383,8 +383,6 @@ } }); - this.updateSearch(); - this.$fileList.on('click','td.filename>a.name, td.filesize, td.date', _.bind(this._onClickFile, this)); this.$fileList.on("droppedOnFavorites", function (event, file) { @@ -1126,7 +1124,6 @@ if ($targetDir !== undefined && e.which === 1) { e.preventDefault(); this.changeDirectory($targetDir, true, true); - this.updateSearch(); } }, @@ -3260,17 +3257,7 @@ getFilter:function(filter) { return this._filter; }, - /** - * update the search object to use this filelist when filtering - */ - updateSearch:function() { - if (OCA.Search.files) { - OCA.Search.files.setFileList(this); - } - if (OC.Search) { - OC.Search.clear(); - } - }, + /** * Update UI based on the current selection */ -- cgit v1.2.3