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:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2019-08-08 10:01:01 +0300
committerGitHub <noreply@github.com>2019-08-08 10:01:01 +0300
commitc470e3913ac5398d54e4940a6f84963f7c494f39 (patch)
tree60a5fb90d514240954930818c9d835a2b8984373
parent6acee25400b084c386d8e7dd3f0b438f01d4773e (diff)
parente430074d2789a79d48d36cf57512d10d1e9d5d47 (diff)
[stable15] 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 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')) {