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

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Wed May 15 05:25:58 UTC 2019


 loleaflet/src/map/Map.js |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 50e5690d3044d5474ff0d96e69f0fae32a816c03
Author:     Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
AuthorDate: Tue May 14 08:40:08 2019 +0200
Commit:     Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
CommitDate: Wed May 15 07:25:39 2019 +0200

    Simplify code
    
    Change-Id: Ifc3a04c38b6449ef289f8092e8be6cee3b5865c3
    Reviewed-on: https://gerrit.libreoffice.org/72275
    Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
    Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>

diff --git a/loleaflet/src/map/Map.js b/loleaflet/src/map/Map.js
index 34aa358e2..d9476a857 100644
--- a/loleaflet/src/map/Map.js
+++ b/loleaflet/src/map/Map.js
@@ -1460,9 +1460,9 @@ L.Map = L.Evented.extend({
 	showMenubar: function() {
 		if (!this.isMenubarHidden())
 			return;
-		$('.main-nav').css({'display': ''});
+		$('.main-nav').show();
 		if (closebutton && !window.mode.isTablet()) {
-			$('#closebuttonwrapper').css({'display': ''});
+			$('#closebuttonwrapper').show();
 		}
 
 		var obj = $('.unfold');
@@ -1477,9 +1477,9 @@ L.Map = L.Evented.extend({
 	hideMenubar: function() {
 		if (this.isMenubarHidden())
 			return;
-		$('.main-nav').css({'display': 'none'});
+		$('.main-nav').hide();
 		if (closebutton) {
-			$('#closebuttonwrapper').css({'display': 'none'});
+			$('#closebuttonwrapper').hide();
 		}
 
 		var obj = $('.fold');


More information about the Libreoffice-commits mailing list