Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files')
-rw-r--r--apps/files/js/filelist.js2
-rw-r--r--apps/files/tests/js/filelistSpec.js1
2 files changed, 2 insertions, 1 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index 4d65723bb3e..69322273a11 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -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);
diff --git a/apps/files/tests/js/filelistSpec.js b/apps/files/tests/js/filelistSpec.js
index 8f2ef97b782..d35b3a19b9c 100644
--- a/apps/files/tests/js/filelistSpec.js
+++ b/apps/files/tests/js/filelistSpec.js
@@ -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();