Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2019-04-08 23:10:05 +0300
committerGitHub <noreply@github.com>2019-04-08 23:10:05 +0300
commit726c49eb2d92ee23ae472148a79b2e9ba881991c (patch)
treedbbf2695bfd130b792fc206e6ab7ba5c91ab2a90
parent89cab322431ed601f998411d38569925d687d0f5 (diff)
parent70c4335383143dc94df60fc93505f7881b0b7579 (diff)
Merge pull request #15002 from nextcloud/backport/14985/stable14
[stable14] Check if OCA.Files.App is available before calling
-rw-r--r--apps/files/js/fileactions.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/js/fileactions.js b/apps/files/js/fileactions.js
index ba29b9096f4..407740b1110 100644
--- a/apps/files/js/fileactions.js
+++ b/apps/files/js/fileactions.js
@@ -675,7 +675,7 @@
this.register('dir', 'Open', OC.PERMISSION_READ, '', 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 {