aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js/filelist.js
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files/js/filelist.js')
-rw-r--r--apps/files/js/filelist.js9
1 files changed, 3 insertions, 6 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index 9973c92c8ec..ce428064337 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -892,13 +892,10 @@
event.preventDefault();
} else if (!renaming) {
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.getDefault(mime,type, permissions);
- if (action) {
+ var spec = this.fileActions.getCurrentDefaultFileAction();
+ if (spec && spec.action) {
event.preventDefault();
- action(filename, {
+ spec.action(filename, {
$file: $tr,
fileList: this,
fileActions: this.fileActions,