diff options
author | Morris Jobke <hey@morrisjobke.de> | 2019-07-15 22:56:37 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-15 22:56:37 +0300 |
commit | dd15c6b43eebf0368666ed97c1480a898b35d1e9 (patch) | |
tree | cbb20cbe738fd8fc3f45fd55785007365805582f | |
parent | 0925b6fa6ea2f97f826c6012f72da0ff9bfa5711 (diff) | |
parent | d983edd962f7decf0356910f975f78ecb9dd1ff9 (diff) |
Merge pull request #144 from nextcloud/fix-download-button-shown-in-public-share-page-with-hidden-downloadsv17.0.0beta1
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')) { |