From fa725fba7362734d6f9fdd5acb6b5fe4f1aff0ca Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Tue, 22 Sep 2015 15:28:48 +0200 Subject: Properly show sidebar for trash and sharing sections --- apps/files/js/detailsview.js | 2 +- apps/files/js/filelist.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'apps/files/js') diff --git a/apps/files/js/detailsview.js b/apps/files/js/detailsview.js index 3a775c29ec6..b01f9cea610 100644 --- a/apps/files/js/detailsview.js +++ b/apps/files/js/detailsview.js @@ -84,7 +84,7 @@ }, _onClose: function(event) { - OC.Apps.hideAppSidebar(); + OC.Apps.hideAppSidebar(this.$el); event.preventDefault(); }, diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 2af5be73d96..151c70bfce1 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -305,7 +305,7 @@ permissions: OC.PERMISSION_READ, actionHandler: function(fileName, context) { self._updateDetailsView(fileName); - OC.Apps.showAppSidebar(); + OC.Apps.showAppSidebar(self._detailsView.$el); } }); } @@ -380,7 +380,7 @@ if (tabId) { this._detailsView.selectTab(tabId); } - OC.Apps.showAppSidebar(); + OC.Apps.showAppSidebar(this._detailsView.$el); }, /** -- cgit v1.2.3