Merge pull request #21599 from owncloud/ErikPel-master

[CI] Fixed issue #21452
This commit is contained in:
Thomas Müller 2016-01-13 15:46:02 +01:00
commit 471c77305f
1 changed files with 7 additions and 1 deletions

View File

@ -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;
},