removed whitespace

removed whitespace

Changed it based on PVince81's suggestion
This commit is contained in:
Erik Pellikka 2016-01-10 18:56:18 +02:00 committed by Morris Jobke
parent cc4e4ecf0f
commit ace66057f2
1 changed files with 7 additions and 1 deletions

View File

@ -642,7 +642,13 @@
}; };
OCA.Files.FileActions.updateFileActionSpinner(downloadFileaction, true); OCA.Files.FileActions.updateFileActionSpinner(downloadFileaction, true);
if(this.getSelectedFiles().length > 1) {
OCA.Files.Files.handleDownload(this.getDownloadUrl(files, dir, true), disableLoadingState); 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; return false;
}, },