diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2020-04-11 08:23:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-11 08:23:11 +0200 |
commit | e5ac5c7f34a6551f0880f05cba7f7b9c871d0b0e (patch) | |
tree | 3729e1e98b11694f385ac4ee3a7c7f523eccce04 /apps/files/js/fileactions.js | |
parent | b5a30d5cd6b53831c0d6d2fd074dc0000fa811de (diff) | |
parent | 43f0d2a3b5bc76ed72693695451398b4b7b78411 (diff) | |
download | nextcloud-server-e5ac5c7f34a6551f0880f05cba7f7b9c871d0b0e.tar.gz nextcloud-server-e5ac5c7f34a6551f0880f05cba7f7b9c871d0b0e.zip |
Merge pull request #20185 from azul/open-new_tab
Modify do_action so default ctrl-click opens tab
Diffstat (limited to 'apps/files/js/fileactions.js')
-rw-r--r-- | apps/files/js/fileactions.js | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/apps/files/js/fileactions.js b/apps/files/js/fileactions.js index 24f8279116d..1f6d5f798a9 100644 --- a/apps/files/js/fileactions.js +++ b/apps/files/js/fileactions.js @@ -257,13 +257,26 @@ }, /** + * Returns the default file action handler for the current file + * + * @return {OCA.Files.FileActions~actionSpec} action spec + * @since 8.2 + */ + getCurrentDefaultFileAction: function() { + var mime = this.getCurrentMimeType(); + var type = this.getCurrentType(); + var permissions = this.getCurrentPermissions(); + return this.getDefaultFileAction(mime, type, permissions); + }, + + /** * Returns the default file action handler for the given conditions * * @param {string} mime mime type * @param {string} type "dir" or "file" * @param {int} permissions permissions * - * @return {OCA.Files.FileActions~actionHandler} action handler + * @return {OCA.Files.FileActions~actionSpec} action spec * @since 8.2 */ getDefaultFileAction: function(mime, type, permissions) { |