Merge pull request #13332 from oparoz/fix-download-button
Download the current public folder only
This commit is contained in:
commit
9b7421972b
1 changed files with 6 additions and 1 deletions
|
@ -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 () {
|
||||
|
|
Loading…
Reference in a new issue