summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-01-14 12:24:06 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-01-14 12:24:06 +0100
commit9b7421972b492b287999e8644c78cb98f1d03935 (patch)
tree312ff1b86301d5079745f31d4f83efb79a1aba95 /apps
parent9a487f0445d9dfd26690943c5aa570553f7de2fc (diff)
parent356bfb36dc9aa1da7ed4e03ac53f6d3e684cb53b (diff)
downloadnextcloud-server-9b7421972b492b287999e8644c78cb98f1d03935.tar.gz
nextcloud-server-9b7421972b492b287999e8644c78cb98f1d03935.zip
Merge pull request #13332 from oparoz/fix-download-button
Download the current public folder only
Diffstat (limited to 'apps')
-rw-r--r--apps/files_sharing/js/public.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/files_sharing/js/public.js b/apps/files_sharing/js/public.js
index 02ecf56fa09..cbd135028f1 100644
--- a/apps/files_sharing/js/public.js
+++ b/apps/files_sharing/js/public.js
@@ -8,7 +8,7 @@
*
*/
-/* global FileActions, Files */
+/* global FileActions, Files, FileList */
/* global dragOptions, folderDropOptions */
if (!OCA.Sharing) {
OCA.Sharing = {};
@@ -164,6 +164,11 @@ OCA.Sharing.PublicApp = {
// URL history handling
this.fileList.$el.on('changeDirectory', _.bind(this._onDirectoryChanged, this));
OC.Util.History.addOnPopStateHandler(_.bind(this._onUrlChanged, this));
+
+ $('#download').click(function (e) {
+ e.preventDefault();
+ OC.redirect(FileList.getDownloadUrl());
+ });
}
$(document).on('click', '#directLink', function () {