Oberflächenadministratoren, SMW-Administratoren, SMW-Kuratoren, SMW-Editoren, Oversighter, Administratoren, Widget-Bearbeiter
1.217
Bearbeitungen
K (fix #36) |
(fix #36) |
||
Zeile 158: | Zeile 158: | ||
*/ | */ | ||
$(document).ready(function() { | $(document).ready(function() { | ||
$('.tabs-label').click(function(e) { | $('.tabs-label').click(function(e) { | ||
var mapExists = setInterval(function() { | var mapExists = setInterval(function() { | ||
var counter = 0; | var counter = 0; | ||
var mapsLeafletList = window.mapsLeafletList; | var mapsLeafletList = window.mapsLeafletList; | ||
if (mapsLeafletList && mapsLeafletList.length) { | if (mapsLeafletList && mapsLeafletList.length) { | ||
mapsLeafletList.forEach(function(l) { | mapsLeafletList.forEach(function(l) { | ||
if (l.map) { | if (l.map) { | ||
l.map.invalidateSize(false); | l.map.invalidateSize(false); | ||
clearInterval(mapExists); | clearInterval(mapExists); | ||
Zeile 175: | Zeile 170: | ||
}); | }); | ||
} | } | ||
if (counter++ > 10) | if (counter++ > 10) clearInterval(mapExists); | ||
}, 100); | }, 100); | ||
}); | }); | ||
}); | }); |
Bearbeitungen