mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 08:16:43 -04:00
Merge pull request #31832 from nextcloud/firefox-reload-filelist
fix filelist not loading after refresh in firefox
This commit is contained in:
commit
60f946aba5
2 changed files with 2 additions and 1 deletions
|
|
@ -791,7 +791,7 @@
|
|||
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) {
|
||||
if(this._currentDirectory && currentDir === e.dir) {
|
||||
return;
|
||||
}
|
||||
this.changeDirectory(e.dir, true, true, undefined, true);
|
||||
|
|
|
|||
|
|
@ -3442,6 +3442,7 @@ describe('OCA.Files.FileList tests', function() {
|
|||
|
||||
beforeEach(function() {
|
||||
fileListStub = sinon.stub(OCA.Files.FileList.prototype, 'changeDirectory');
|
||||
fileList._currentDirectory = '/subdir';
|
||||
});
|
||||
afterEach(function() {
|
||||
fileListStub.restore();
|
||||
|
|
|
|||
Loading…
Reference in a new issue