Skip to content

Commit

Permalink
Force list reload when switching sections
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Petry committed Aug 29, 2017
1 parent e48d172 commit 5c56881
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion apps/files/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand Down
6 changes: 4 additions & 2 deletions apps/files/js/filelist.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 5c56881

Please sign in to comment.