[Libreoffice-commits] online.git: loleaflet/src

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Tue Mar 26 14:03:12 UTC 2019


 loleaflet/src/control/toolbar.js |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 6c94280b9c19d8c2ef6b3b61951145f212f03075
Author:     Szymon Kłos <szymon.klos at collabora.com>
AuthorDate: Tue Mar 26 15:02:13 2019 +0100
Commit:     Szymon Kłos <szymon.klos at collabora.com>
CommitDate: Tue Mar 26 15:02:41 2019 +0100

    Fix doucument loading on mobile
    
    Change-Id: I190b021101fb0bb371b65c666969701d71b024aa

diff --git a/loleaflet/src/control/toolbar.js b/loleaflet/src/control/toolbar.js
index 5ef4f62f0..7b068d771 100644
--- a/loleaflet/src/control/toolbar.js
+++ b/loleaflet/src/control/toolbar.js
@@ -1373,7 +1373,7 @@ function onWopiProps(e) {
 		$('#document-name-input').removeClass('editable');
 		$('#document-name-input').off('keypress', onDocumentNameKeyPress);
 	}
-	if (e.EnableInsertRemoteImage === true) {
+	if (e.EnableInsertRemoteImage === true && w2ui['editbar']) {
 		w2ui['editbar'].hide('insertgraphic');
 		w2ui['editbar'].show('menugraphic');
 	}


More information about the Libreoffice-commits mailing list