Skip to content

Commit 3314735

Browse files
authored
Merge pull request #35052 from nextcloud/fix-sidebar-not-hidden-when-changing-section-in-files-app
Fix sidebar not automatically hidden in Files app
2 parents 179e104 + a8fea27 commit 3314735

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

apps/files/js/app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@
321321
dir: e.dir ? e.dir : '/'
322322
};
323323
this._changeUrl(params.view, params.dir);
324-
OC.Apps.hideAppSidebar($('.detailsView'));
324+
OCA.Files.Sidebar.close();
325325
this.navigation.getActiveContainer().trigger(new $.Event('urlChanged', params));
326326
window._nc_event_bus.emit('files:navigation:changed')
327327
}
@@ -352,7 +352,7 @@
352352
_onChangeViewerMode: function(e) {
353353
var state = !!e.viewerModeEnabled;
354354
if (e.viewerModeEnabled) {
355-
OC.Apps.hideAppSidebar($('.detailsView'));
355+
OCA.Files.Sidebar.close();
356356
}
357357
$('#app-navigation').toggleClass('hidden', state);
358358
$('.app-files').toggleClass('viewer-mode no-sidebar', state);

apps/files/js/gotoplugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
type: OCA.Files.FileActions.TYPE_DROPDOWN,
4646
actionHandler: function (fileName, context) {
4747
var fileModel = context.fileInfoModel;
48-
OC.Apps.hideAppSidebar($('.detailsView'));
48+
OCA.Files.Sidebar.close();
4949
OCA.Files.App.setActiveView('files', { silent: true });
5050
OCA.Files.App.fileList.changeDirectory(fileModel.get('path'), true, true).then(function() {
5151
OCA.Files.App.fileList.scrollTo(fileModel.get('name'));

0 commit comments

Comments
 (0)