diff options
author | noveens <noveen.sachdeva@research.iiit.ac.in> | 2017-03-01 17:27:48 +0530 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2017-03-02 21:43:44 -0600 |
commit | 93f9db4d59ec7795fe998d45ae8b49f3581231c0 (patch) | |
tree | a760aae2cff3b4b9f37ba441b96797939c73a069 /apps/files/js | |
parent | 53195b156c68082f1e02e45ba2a266c15ef1bcaa (diff) | |
download | nextcloud-server-93f9db4d59ec7795fe998d45ae8b49f3581231c0.tar.gz nextcloud-server-93f9db4d59ec7795fe998d45ae8b49f3581231c0.zip |
filelist only refreshed if directory changes
check introduced at another method
comment added to explain one check
comment added to explain one check
unit tests added
small fixes in unit tests
missing semicolon added
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/files/js')
-rw-r--r-- | apps/files/js/filelist.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 3a59da53517..1f4b8f0ec68 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -557,6 +557,11 @@ */ _onUrlChanged: function(e) { 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; + } this.changeDirectory(e.dir, false, true); } }, |