Skip to content

Commit

Permalink
Merge pull request #6869 from burned42/6307-fix_page_title_not_changed
Browse files Browse the repository at this point in the history
#6307 fix page title not changed
  • Loading branch information
danxuliu authored Oct 27, 2017
2 parents 7a4c0c6 + 844db3c commit 1f19a45
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions apps/files/js/filelist.js
Original file line number Diff line number Diff line change
Expand Up @@ -1685,6 +1685,7 @@
// close sidebar
this._updateDetailsView(null);
}
this._setCurrentDir(this.getCurrentDirectory(), false);
var callBack = this.reloadCallback.bind(this);
return this._reloadCall.then(callBack, callBack);
},
Expand Down
4 changes: 3 additions & 1 deletion apps/files/tests/js/filelistSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -1627,7 +1627,9 @@ describe('OCA.Files.FileList tests', function() {
var setDirSpy = sinon.spy(fileList.breadcrumb, 'setDirectory');
fileList.changeDirectory('/anothersubdir');
deferredList.resolve(200, [testRoot].concat(testFiles));
expect(fileList.breadcrumb.setDirectory.calledOnce).toEqual(true);
// twice because setDirectory gets called by _setCurrentDir which
// gets called directly by changeDirectory and via reload()
expect(fileList.breadcrumb.setDirectory.calledTwice).toEqual(true);
expect(fileList.breadcrumb.setDirectory.calledWith('/anothersubdir')).toEqual(true);
setDirSpy.restore();
getFolderContentsStub.restore();
Expand Down
3 changes: 3 additions & 0 deletions apps/systemtags/js/systemtagsfilelist.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,9 @@
},

reload: function() {
// there is only root
this._setCurrentDir('/', false);

if (!this._systemTagIds.length) {
// don't reload
this.updateEmptyContent();
Expand Down

0 comments on commit 1f19a45

Please sign in to comment.