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:05:31 +0300
committerGitHub <noreply@github.com>2019-08-08 10:05:31 +0300
commit1f41d5ed7f607d0a0e6b241c610d563099e1e25b (patch)
tree889219bdc41e792a3004b711656f2a228abc71fd
parentb47fe094687dd2eeaa511786b553d250ae0af936 (diff)
parent9405ef925abca8dde28b374b9e7cb1f3f498b516 (diff)
[stable16] 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')) {