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:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2017-04-22 19:22:13 +0300
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2017-04-25 18:45:42 +0300
commit18f46bd47f1402663f83861e724e7108655ed29c (patch)
tree809a5484a005ed634a1a34125e70d28d0518d227 /apps/files/js/gotoplugin.js
parent16b4eecb05c354b051b9aaa3e4c3ebb988140ed2 (diff)
Fix closing details view when viewing file in folder
The Files app active view is set to "files" in silent mode to avoid an unneeded load of the "/" directory. However, this also prevents the details view from being automatically closed, so it has to be explicitly closed by the Goto plugin; the approach used is the same that would have been used by OCA.Files.App._onNavigationChanged if not silenced. Fixes #1448 Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'apps/files/js/gotoplugin.js')
-rw-r--r--apps/files/js/gotoplugin.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/files/js/gotoplugin.js b/apps/files/js/gotoplugin.js
index 69ec64b0266..4793420ed2d 100644
--- a/apps/files/js/gotoplugin.js
+++ b/apps/files/js/gotoplugin.js
@@ -40,6 +40,7 @@
type: OCA.Files.FileActions.TYPE_DROPDOWN,
actionHandler: function (fileName, context) {
var fileModel = context.fileInfoModel;
+ OC.Apps.hideAppSidebar($('.detailsView'));
OCA.Files.App.setActiveView('files', {silent: true});
OCA.Files.App.fileList.changeDirectory(fileModel.get('path'), true, true).then(function() {
OCA.Files.App.fileList.scrollTo(fileModel.get('name'));