diff options
author | Erik Pellikka <erik@pellikka.org> | 2016-01-10 18:56:18 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2016-01-13 14:47:00 +0100 |
commit | ace66057f27d868ef2f89049b89d4ff53f021c2a (patch) | |
tree | 10aae3ebd2a7d0a29118282fb92a5ee418e8d97d /apps/files/js | |
parent | cc4e4ecf0f2f1e2644ff66da537515ddaddc716c (diff) | |
download | nextcloud-server-ace66057f27d868ef2f89049b89d4ff53f021c2a.tar.gz nextcloud-server-ace66057f27d868ef2f89049b89d4ff53f021c2a.zip |
Fixed issue #21452
removed whitespace
removed whitespace
Changed it based on PVince81's suggestion
Diffstat (limited to 'apps/files/js')
-rw-r--r-- | apps/files/js/filelist.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index d5b30d62998..d0c7687e5b6 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -642,7 +642,13 @@ }; OCA.Files.FileActions.updateFileActionSpinner(downloadFileaction, true); - OCA.Files.Files.handleDownload(this.getDownloadUrl(files, dir, true), disableLoadingState); + if(this.getSelectedFiles().length > 1) { + OCA.Files.Files.handleDownload(this.getDownloadUrl(files, dir, true), disableLoadingState); + } + else { + first = this.getSelectedFiles()[0]; + OCA.Files.Files.handleDownload(this.getDownloadUrl(first.name, dir, true), disableLoadingState); + } return false; }, |