diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-01-13 15:46:02 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-01-13 15:46:02 +0100 |
commit | 471c77305f0b237862e87830104d9edead62190c (patch) | |
tree | 10aae3ebd2a7d0a29118282fb92a5ee418e8d97d /apps | |
parent | cc4e4ecf0f2f1e2644ff66da537515ddaddc716c (diff) | |
parent | ace66057f27d868ef2f89049b89d4ff53f021c2a (diff) | |
download | nextcloud-server-471c77305f0b237862e87830104d9edead62190c.tar.gz nextcloud-server-471c77305f0b237862e87830104d9edead62190c.zip |
Merge pull request #21599 from owncloud/ErikPel-master
[CI] Fixed issue #21452
Diffstat (limited to 'apps')
-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; }, |