diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-01-02 10:28:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-02 10:28:04 +0100 |
commit | fa2fe34b7a2189fd147f5796b8c24696a4ed8131 (patch) | |
tree | 164e3ead761b6adf7c38322fcb5f4c71a4bd82a6 /apps/files/js | |
parent | a2a4a5596d757fccbf3b2894fe5647611a7a0821 (diff) | |
parent | ea40ade8adc115b45c09be0dc5148cfe2530079c (diff) | |
download | nextcloud-server-fa2fe34b7a2189fd147f5796b8c24696a4ed8131.tar.gz nextcloud-server-fa2fe34b7a2189fd147f5796b8c24696a4ed8131.zip |
Merge pull request #7624 from nextcloud/fix-fileActions-currentFile-not-set-before-using-it
Fix "fileActions.currentFile" not set before using it
Diffstat (limited to 'apps/files/js')
-rw-r--r-- | apps/files/js/filelist.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 61e9432dce3..d0c0fc1a7fc 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -683,11 +683,14 @@ // the details to be shown. event.preventDefault(); var filename = $tr.attr('data-file'); + this.fileActions.currentFile = $tr.find('td'); var mime = this.fileActions.getCurrentMimeType(); var type = this.fileActions.getCurrentType(); 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, |