summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorSimon L <szaimen@e.mail.de>2022-11-09 19:51:14 +0100
committerGitHub <noreply@github.com>2022-11-09 19:51:14 +0100
commit3314735cecaa3f200d6ba8209f6508971fcb54b4 (patch)
tree99f023ba0f7e28e01b99ab721a744ead854c77bc /apps
parent179e104934cc06cadb87b21734e953d79f46115f (diff)
parenta8fea270edce79f2676e79b1edde8bb4daba8294 (diff)
downloadnextcloud-server-3314735cecaa3f200d6ba8209f6508971fcb54b4.tar.gz
nextcloud-server-3314735cecaa3f200d6ba8209f6508971fcb54b4.zip
Merge pull request #35052 from nextcloud/fix-sidebar-not-hidden-when-changing-section-in-files-app
Fix sidebar not automatically hidden in Files app
Diffstat (limited to 'apps')
-rw-r--r--apps/files/js/app.js4
-rw-r--r--apps/files/js/gotoplugin.js2
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/files/js/app.js b/apps/files/js/app.js
index dcc294975b9..4f335a5b04a 100644
--- a/apps/files/js/app.js
+++ b/apps/files/js/app.js
@@ -321,7 +321,7 @@
dir: e.dir ? e.dir : '/'
};
this._changeUrl(params.view, params.dir);
- OC.Apps.hideAppSidebar($('.detailsView'));
+ OCA.Files.Sidebar.close();
this.navigation.getActiveContainer().trigger(new $.Event('urlChanged', params));
window._nc_event_bus.emit('files:navigation:changed')
}
@@ -352,7 +352,7 @@
_onChangeViewerMode: function(e) {
var state = !!e.viewerModeEnabled;
if (e.viewerModeEnabled) {
- OC.Apps.hideAppSidebar($('.detailsView'));
+ OCA.Files.Sidebar.close();
}
$('#app-navigation').toggleClass('hidden', state);
$('.app-files').toggleClass('viewer-mode no-sidebar', state);
diff --git a/apps/files/js/gotoplugin.js b/apps/files/js/gotoplugin.js
index 474acdab587..ca1823697c4 100644
--- a/apps/files/js/gotoplugin.js
+++ b/apps/files/js/gotoplugin.js
@@ -45,7 +45,7 @@
type: OCA.Files.FileActions.TYPE_DROPDOWN,
actionHandler: function (fileName, context) {
var fileModel = context.fileInfoModel;
- OC.Apps.hideAppSidebar($('.detailsView'));
+ OCA.Files.Sidebar.close();
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'));