loleaflet/src/control/Signing.js | 6 ++++++ 1 file changed, 6 insertions(+)
New commits: commit 0b15bd381cb6b3b8d69eae4a044c8384d83046cb Author: Miklos Vajna <vmik...@collabora.com> AuthorDate: Wed Dec 5 11:40:50 2018 +0100 Commit: Miklos Vajna <vmik...@collabora.com> CommitDate: Wed Dec 5 12:05:45 2018 +0100 loleaflet: completely hide document signing bar by default This used to be mostly hidden by the document container, but a 1px horizontal red line was still visible. Also return early in adjustUIState() to silence errors when the feature is not enabled in loolwsd.xml. Change-Id: I140bc5a79bdb85790021f57dd0ab810587bb2529 diff --git a/loleaflet/src/control/Signing.js b/loleaflet/src/control/Signing.js index 61806eaa1..5c3c9961b 100644 --- a/loleaflet/src/control/Signing.js +++ b/loleaflet/src/control/Signing.js @@ -110,6 +110,9 @@ function updateCurrentPassport() { } function adjustUIState() { + if (w2ui['document-signing-bar'] === undefined) + return; + if (library && identity) { w2ui['document-signing-bar'].hide('login'); w2ui['document-signing-bar'].show('logout'); @@ -264,18 +267,21 @@ function vereignRestoreIdentity() { L.Map.include({ showSignDocument: function() { + $('#document-signing-bar').show(); this.initializeLibrary(); oldtoolbarSize = $('#document-container').css('top'); $('#document-container').css('top', '110px'); }, hideSignDocument: function() { + $('#document-signing-bar').hide(); library = null; identity = null; currentPassport = null; $('#document-container').css('top', oldtoolbarSize); }, signingInitializeBar: function() { + $('#document-signing-bar').hide(); adjustUIState(); }, signDocument: function() { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits