diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2019-08-08 10:05:31 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-08 10:05:31 +0300 |
commit | 1f41d5ed7f607d0a0e6b241c610d563099e1e25b (patch) | |
tree | 889219bdc41e792a3004b711656f2a228abc71fd | |
parent | b47fe094687dd2eeaa511786b553d250ae0af936 (diff) | |
parent | 9405ef925abca8dde28b374b9e7cb1f3f498b516 (diff) |
Merge pull request #145 from nextcloud/backport/144/stable16v16.0.9RC2v16.0.9RC1v16.0.9v16.0.8RC1v16.0.8v16.0.7RC1v16.0.7v16.0.6rc1v16.0.6v16.0.5RC1v16.0.5v16.0.4RC1v16.0.416.0.4
[stable16] 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 7760de2..ad3b338 100644 --- a/js/previewplugin.js +++ b/js/previewplugin.js @@ -93,6 +93,11 @@ } else { iframe.find("#secondaryToolbarClose").addClass('hidden'); } + + var hideDownload = $('#hideDownload').val(); + if (hideDownload === 'true') { + iframe.find('.download').addClass('hidden'); + } }); if(!$('html').hasClass('ie8')) { |