From 5e4eda1ae0ea0ee7e690fee1017dae873a1a7512 Mon Sep 17 00:00:00 2001 From: Julius Härtl Date: Mon, 14 Oct 2019 19:19:16 +0200 Subject: Remove deprecated legacy file actions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- apps/files/js/filelist.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'apps/files/js/filelist.js') diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index edb2ae2cbaf..0e24c09ec07 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -839,8 +839,6 @@ var action = this.fileActions.getDefault(mime,type, permissions); if (action) { event.preventDefault(); - // also set on global object for legacy apps - window.FileActions.currentFile = this.fileActions.currentFile; action(filename, { $file: $tr, fileList: this, @@ -865,8 +863,6 @@ var permissions = this.fileActions.getCurrentPermissions(); var action = this.fileActions.get(mime, type, permissions)['Details']; if (action) { - // also set on global object for legacy apps - window.FileActions.currentFile = this.fileActions.currentFile; action(filename, { $file: $tr, fileList: this, @@ -1022,7 +1018,7 @@ if (type === OC.dialogs.FILEPICKER_TYPE_MOVE) { self.move(files, targetPath, disableLoadingState); } - self.dirInfo.dirLastCopiedTo = targetPath; + self.dirInfo.dirLastCopiedTo = targetPath; }, false, "httpd/unix-directory", true, actions, dialogDir); event.preventDefault(); }, @@ -3273,7 +3269,7 @@ /** * Are all files selected? - * + * * @returns {Boolean} all files are selected */ isAllSelected: function() { -- cgit v1.2.3