diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2017-04-22 18:22:13 +0200 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2017-04-25 17:45:42 +0200 |
commit | 18f46bd47f1402663f83861e724e7108655ed29c (patch) | |
tree | 809a5484a005ed634a1a34125e70d28d0518d227 /apps | |
parent | 16b4eecb05c354b051b9aaa3e4c3ebb988140ed2 (diff) | |
download | nextcloud-server-18f46bd47f1402663f83861e724e7108655ed29c.tar.gz nextcloud-server-18f46bd47f1402663f83861e724e7108655ed29c.zip |
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')
-rw-r--r-- | apps/files/js/gotoplugin.js | 1 |
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')); |