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:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2019-03-29 15:31:47 +0300
committerGitHub <noreply@github.com>2019-03-29 15:31:47 +0300
commited0e18fb8993213ab1269ae417ebdc0d8e6dc0d9 (patch)
tree52fae58a0cec601307c9fd6689acb5e91db3e950
parentf105bc53b912df29f5ffb23a331e38dbf530b5ce (diff)
parentc1bad831cd4ac2a6a85325b3bba75e72df60e246 (diff)
Merge pull request #14890 from nextcloud/stable14-14886
[stable14] Fix opening folders from different file lists
-rw-r--r--apps/files/js/fileactions.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/files/js/fileactions.js b/apps/files/js/fileactions.js
index 8ce8eddb0b0..ba29b9096f4 100644
--- a/apps/files/js/fileactions.js
+++ b/apps/files/js/fileactions.js
@@ -675,7 +675,12 @@
this.register('dir', 'Open', OC.PERMISSION_READ, '', function (filename, context) {
var dir = context.$file.attr('data-path') || context.fileList.getCurrentDirectory();
- context.fileList.changeDirectory(OC.joinPaths(dir, filename), true, false, parseInt(context.$file.attr('data-id'), 10));
+ if (OCA.Files.App.getActiveView() !== 'files') {
+ OCA.Files.App.setActiveView('files');
+ OCA.Files.App.fileList.changeDirectory(OC.joinPaths(dir, filename), true, true);
+ } else {
+ context.fileList.changeDirectory(OC.joinPaths(dir, filename), true, false, parseInt(context.$file.attr('data-id'), 10));
+ }
});
this.registerAction({