diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2018-11-20 22:52:48 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-20 22:52:48 +0300 |
commit | cc23a9780018f3ff59e683e5a35b45b16cc7cd9a (patch) | |
tree | 6eb5eced7ab238696875a04e230e596984ae3714 | |
parent | 5a419942bd94764606abc0b7d2a62de08b5c62a6 (diff) | |
parent | cd7094652f6fd9acc77979cd96093177532880e9 (diff) |
Merge pull request #484 from nextcloud/bugfix/noid/public-hide-downloadv15.0.0RC1
Hide button if download links are hidden for link shares
-rw-r--r-- | js/slideshowcontrols.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/js/slideshowcontrols.js b/js/slideshowcontrols.js index a84a4ca3..31be1b8b 100644 --- a/js/slideshowcontrols.js +++ b/js/slideshowcontrols.js @@ -139,7 +139,10 @@ if (transparent) { this._showBackgroundToggle(); } - this.showButton('.downloadImage'); + var hideDownload = $('#hideDownload').val(); + if (hideDownload !== 'true') { + this.showButton('.downloadImage'); + } var canDelete = ((permissions & OC.PERMISSION_DELETE) !== 0); var canShare = ((permissions & OC.PERMISSION_SHARE) !== 0); if (!isPublic && canDelete) { |