Skip to content
Snippets Groups Projects
Commit 9b742197 authored by Thomas Müller's avatar Thomas Müller
Browse files

Merge pull request #13332 from oparoz/fix-download-button

Download the current public folder only
parents 9a487f04 356bfb36
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
*/ */
/* global FileActions, Files */ /* global FileActions, Files, FileList */
/* global dragOptions, folderDropOptions */ /* global dragOptions, folderDropOptions */
if (!OCA.Sharing) { if (!OCA.Sharing) {
OCA.Sharing = {}; OCA.Sharing = {};
...@@ -164,6 +164,11 @@ OCA.Sharing.PublicApp = { ...@@ -164,6 +164,11 @@ OCA.Sharing.PublicApp = {
// URL history handling // URL history handling
this.fileList.$el.on('changeDirectory', _.bind(this._onDirectoryChanged, this)); this.fileList.$el.on('changeDirectory', _.bind(this._onDirectoryChanged, this));
OC.Util.History.addOnPopStateHandler(_.bind(this._onUrlChanged, this)); OC.Util.History.addOnPopStateHandler(_.bind(this._onUrlChanged, this));
$('#download').click(function (e) {
e.preventDefault();
OC.redirect(FileList.getDownloadUrl());
});
} }
$(document).on('click', '#directLink', function () { $(document).on('click', '#directLink', function () {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment