Browse Source
Check if OCA.Files.App is available before calling
Signed-off-by: Julius Härtl <jus@bitgrid.net>
pull/14985/head
Julius Härtl
7 years ago
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
1 changed files with
1 additions and
1 deletions
-
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 { |
|
|
|
|