Don't register a setHome handler unless we have the flag checkbox
prsent on the page.
This commit is contained in:
parent
1c81de0572
commit
e9c2c64884
1 changed files with 3 additions and 1 deletions
|
@ -56,7 +56,9 @@
|
||||||
var nearmarker = addMarkerToMap(new OpenLayers.LonLat(nearest[i].home_lon, nearest[i].home_lat), near_icon.clone(), description);
|
var nearmarker = addMarkerToMap(new OpenLayers.LonLat(nearest[i].home_lon, nearest[i].home_lat), near_icon.clone(), description);
|
||||||
}
|
}
|
||||||
|
|
||||||
map.events.register("click", map, setHome);
|
if (document.getElementById('updatehome')) {
|
||||||
|
map.events.register("click", map, setHome);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function setHome( e ) {
|
function setHome( e ) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue