Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/files_pdfviewer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2019-07-15 22:56:37 +0300
committerGitHub <noreply@github.com>2019-07-15 22:56:37 +0300
commitdd15c6b43eebf0368666ed97c1480a898b35d1e9 (patch)
treecbb20cbe738fd8fc3f45fd55785007365805582f
parent0925b6fa6ea2f97f826c6012f72da0ff9bfa5711 (diff)
parentd983edd962f7decf0356910f975f78ecb9dd1ff9 (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.js5
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')) {