summaryrefslogtreecommitdiffstats
path: root/apps/files/js/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files/js/app.js')
-rw-r--r--apps/files/js/app.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/files/js/app.js b/apps/files/js/app.js
index adb1893bb0e..f31770466fe 100644
--- a/apps/files/js/app.js
+++ b/apps/files/js/app.js
@@ -162,6 +162,7 @@
dir: '/'
};
this._changeUrl(params.view, params.dir);
+ OC.Apps.hideAppSidebar($('.detailsView'));
this.navigation.getActiveContainer().trigger(new $.Event('urlChanged', params));
}
},
@@ -181,6 +182,9 @@
*/
_onChangeViewerMode: function(e) {
var state = !!e.viewerModeEnabled;
+ if (e.viewerModeEnabled) {
+ OC.Apps.hideAppSidebar($('.detailsView'));
+ }
$('#app-navigation').toggleClass('hidden', state);
$('.app-files').toggleClass('viewer-mode no-sidebar', state);
},