Don't show closebutton if not requested

Change-Id: Ie7d84f52244003607cb1a227d9eeea8217c817f8
This commit is contained in:
Szymon Kłos 2019-03-13 15:46:00 +01:00
parent 5e06891569
commit a532906137

View file

@ -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();
}