diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-01-14 12:24:06 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-01-14 12:24:06 +0100 |
commit | 9b7421972b492b287999e8644c78cb98f1d03935 (patch) | |
tree | 312ff1b86301d5079745f31d4f83efb79a1aba95 /apps | |
parent | 9a487f0445d9dfd26690943c5aa570553f7de2fc (diff) | |
parent | 356bfb36dc9aa1da7ed4e03ac53f6d3e684cb53b (diff) | |
download | nextcloud-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.js | 7 |
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 () { |