diff options
author | Julius Härtl <jus@bitgrid.net> | 2019-04-08 11:13:08 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2019-04-08 11:13:08 +0200 |
commit | 07f8aee6fe6c9ed757b8fb268cdc869eb30c5065 (patch) | |
tree | 84e330a140408489d7b45bf9f467825bbf125303 /apps/files/js/fileactions.js | |
parent | acba430246bc8815c368ef19e2c169769ca897ea (diff) | |
download | nextcloud-server-07f8aee6fe6c9ed757b8fb268cdc869eb30c5065.tar.gz nextcloud-server-07f8aee6fe6c9ed757b8fb268cdc869eb30c5065.zip |
Check if OCA.Files.App is available before calling
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/files/js/fileactions.js')
-rw-r--r-- | apps/files/js/fileactions.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/js/fileactions.js b/apps/files/js/fileactions.js index bb91842fa81..03d530e357a 100644 --- a/apps/files/js/fileactions.js +++ b/apps/files/js/fileactions.js @@ -671,7 +671,7 @@ icon: '', actionHandler: function (filename, context) { var dir = context.$file.attr('data-path') || context.fileList.getCurrentDirectory(); - if (OCA.Files.App.getActiveView() !== 'files') { + if (OCA.Files.App && OCA.Files.App.getActiveView() !== 'files') { OCA.Files.App.setActiveView('files'); OCA.Files.App.fileList.changeDirectory(OC.joinPaths(dir, filename), true, true); } else { |