From d6b718584e8aff74a0e76f77d2c1c5689f78cc78 Mon Sep 17 00:00:00 2001 From: "John Molakvoæ (skjnldsv)" Date: Tue, 26 Jun 2018 16:47:16 +0200 Subject: Sidebar fix Fix sidebar and scrollbar on content Sidebar fixes, and sidebar-width + header-height variables MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- apps/files/js/detailsview.js | 4 ++++ apps/files/js/filelist.js | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'apps/files/js') diff --git a/apps/files/js/detailsview.js b/apps/files/js/detailsview.js index 7e2a5f0e8a9..1d33987cd59 100644 --- a/apps/files/js/detailsview.js +++ b/apps/files/js/detailsview.js @@ -117,6 +117,10 @@ * Renders this details view */ render: function() { + // remove old instances + $('#app-sidebar').remove(); + this.$el.insertAfter($('#app-content')); + var templateVars = { closeLabel: t('files', 'Close') }; diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 18872568ab5..b558e439e2e 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -274,7 +274,6 @@ if (_.isUndefined(options.detailsViewEnabled) || options.detailsViewEnabled) { this._detailsView = new OCA.Files.DetailsView(); - this._detailsView.$el.insertBefore(this.$el); this._detailsView.$el.addClass('disappear'); } -- cgit v1.2.3