diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2019-08-08 10:01:01 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-08 10:01:01 +0300 |
commit | c470e3913ac5398d54e4940a6f84963f7c494f39 (patch) | |
tree | 60a5fb90d514240954930818c9d835a2b8984373 | |
parent | 6acee25400b084c386d8e7dd3f0b438f01d4773e (diff) | |
parent | e430074d2789a79d48d36cf57512d10d1e9d5d47 (diff) |
Merge pull request #146 from nextcloud/backport/144/stable15v15.0.14RC1v15.0.14v15.0.13rc1v15.0.13v15.0.12RC1v15.0.12v15.0.11RC1v15.0.1115.0.11stable15
[stable15] Fix download button shown in public share page with hidden downloads
-rw-r--r-- | js/previewplugin.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/js/previewplugin.js b/js/previewplugin.js index 1ae1ad8..db8f4b2 100644 --- a/js/previewplugin.js +++ b/js/previewplugin.js @@ -92,6 +92,11 @@ } else { iframe.find("#secondaryToolbarClose").addClass('hidden'); } + + var hideDownload = $('#hideDownload').val(); + if (hideDownload === 'true') { + iframe.find('.download').addClass('hidden'); + } }); if(!$('html').hasClass('ie8')) { |