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

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Wed Mar 13 15:11:30 UTC 2019


 loleaflet/src/control/toolbar.js |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit a53290613779440963cc175186429df2ecf503de
Author:     Szymon Kłos <szymon.klos at collabora.com>
AuthorDate: Wed Mar 13 15:46:00 2019 +0100
Commit:     Szymon Kłos <szymon.klos at collabora.com>
CommitDate: Wed Mar 13 16:11:08 2019 +0100

    Don't show closebutton if not requested
    
    Change-Id: Ie7d84f52244003607cb1a227d9eeea8217c817f8

diff --git a/loleaflet/src/control/toolbar.js b/loleaflet/src/control/toolbar.js
index 25cc0fe98..dc2a54651 100644
--- a/loleaflet/src/control/toolbar.js
+++ b/loleaflet/src/control/toolbar.js
@@ -2274,7 +2274,9 @@ $(window).resize(function() {
 });
 
 $(document).ready(function() {
-	if (closebutton && !L.Browser.mobile) {
+	if (!closebutton) {
+		$('#closebuttonwrapper').hide();
+	} else if (closebutton && !L.Browser.mobile) {
 		$('#closebuttonwrapper').show();
 	}
 


More information about the Libreoffice-commits mailing list