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:
-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')) {