Commit ae81ac80 authored by Cédric Anne's avatar Cédric Anne Committed by Johan Cwiklinski
Browse files

Fix map display on 'All' tab; fixes #9072

parent a7ac7d82
......@@ -43,7 +43,9 @@ trait MapGeolocation {
* get openstreetmap
*/
public function showMap() {
echo "<div id='setlocation_container'></div>";
$rand = mt_rand();
echo "<div id='setlocation_container_{$rand}'></div>";
$js = "var map_elt, _marker;
var _setLocation = function(lat, lng) {
if (_marker) {
......@@ -83,7 +85,7 @@ trait MapGeolocation {
}
$(function(){
map_elt = initMap($('#setlocation_container'), 'setlocation', '200px');
map_elt = initMap($('#setlocation_container_{$rand}'), 'setlocation_{$rand}', '200px');
var osmGeocoder = new L.Control.OSMGeocoder({
collapsed: false,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment