loleaflet/js/toolbar.js | 3 +++ 1 file changed, 3 insertions(+) New commits: commit 4aad842ca8e49febbdaab5fc9c021ee0e965fc41 Author: Ashod Nakashian <ashod.nakash...@collabora.co.uk> AuthorDate: Mon Feb 18 21:08:39 2019 -0500 Commit: Jan Holesovsky <ke...@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 <ke...@collabora.com> Tested-by: Jan Holesovsky <ke...@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(); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits