Compare commits

...

1 Commits

Author SHA1 Message Date
Julius Härtl 1c5c44be3f
Trigger download from fileactions if no default action is found
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2019-02-06 14:16:39 +01:00
1 changed files with 4 additions and 0 deletions

View File

@ -829,6 +829,10 @@
var type = this.fileActions.getCurrentType();
var permissions = this.fileActions.getCurrentPermissions();
var action = this.fileActions.getDefault(mime,type, permissions);
if (typeof action === 'undefined' && type === 'file') {
var actions = this.fileActions.get(mime,type, permissions);
action = actions['Download'];
}
if (action) {
event.preventDefault();
// also set on global object for legacy apps