]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fixed issue #21452
authorErik Pellikka <erik@pellikka.org>
Sun, 10 Jan 2016 16:56:18 +0000 (18:56 +0200)
committerMorris Jobke <hey@morrisjobke.de>
Wed, 13 Jan 2016 13:47:00 +0000 (14:47 +0100)
removed whitespace

removed whitespace

Changed it based on PVince81's suggestion

apps/files/js/filelist.js

index d5b30d6299829120584abdf27440c9c87f355191..d0c7687e5b6fbd65732932f003b862b5ef036bf6 100644 (file)
                        };
 
                        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;
                },