[Libreoffice-commits] online.git: Branch 'distro/collabora/collabora-online-4' - loleaflet/js

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Tue Feb 19 16:43:13 UTC 2019


 loleaflet/js/toolbar.js |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 4aad842ca8e49febbdaab5fc9c021ee0e965fc41
Author:     Ashod Nakashian <ashod.nakashian at collabora.co.uk>
AuthorDate: Mon Feb 18 21:08:39 2019 -0500
Commit:     Jan Holesovsky <kendy at collabora.com>
CommitDate: Tue Feb 19 17:42:54 2019 +0100

    leaflet: hide print option when the disabled or hidden via wopi
    
    Change-Id: I989f1dbf7002e4ac27a9a0f16bb5d56a9e80218b
    Reviewed-on: https://gerrit.libreoffice.org/67999
    Reviewed-by: Jan Holesovsky <kendy at collabora.com>
    Tested-by: Jan Holesovsky <kendy at collabora.com>

diff --git a/loleaflet/js/toolbar.js b/loleaflet/js/toolbar.js
index b23e58be7..98f780a1a 100644
--- a/loleaflet/js/toolbar.js
+++ b/loleaflet/js/toolbar.js
@@ -1518,6 +1518,9 @@ function onWopiProps(e) {
 	if (e.HideExportOption) {
 		w2ui['presentation-toolbar'].hide('presentation', 'presentationbreak');
 	}
+	if (e.HidePrintOption) {
+		w2ui['editbar'].hide('print');
+	}
 	if (e.DisableCopy) {
 		$('input#formulaInput').bind('copy', function(evt) {
 			evt.preventDefault();


More information about the Libreoffice-commits mailing list