From 5c56881e63f644a584e614351aa796d6d3c99d89 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Fri, 25 Aug 2017 16:45:26 +0200 Subject: [PATCH] Force list reload when switching sections --- apps/files/js/app.js | 3 ++- apps/files/js/filelist.js | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/apps/files/js/app.js b/apps/files/js/app.js index 2b0ddf4f7903..2f368f5209d0 100644 --- a/apps/files/js/app.js +++ b/apps/files/js/app.js @@ -217,7 +217,8 @@ if (e && e.itemId) { params = { view: e.itemId, - dir: '/' + dir: '/', + force: true }; this._changeUrl(params.view, params.dir); OC.Apps.hideAppSidebar($('.detailsView')); diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 0d1719caaa8a..94368c712937 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -554,8 +554,10 @@ if (e && _.isString(e.dir)) { var currentDir = this.getCurrentDirectory(); // this._currentDirectory is NULL when fileList is first initialised - if( (this._currentDirectory || this.$el.find('#dir').val()) && currentDir === e.dir) { - return; + if (!e.force) { + if( (this._currentDirectory || this.$el.find('#dir').val()) && currentDir === e.dir) { + return; + } } this.changeDirectory(e.dir, false, true); }