diff --git a/app/views/site/index.html.erb b/app/views/site/index.html.erb index 9f99b0bc8..69e2a0b27 100644 --- a/app/views/site/index.html.erb +++ b/app/views/site/index.html.erb @@ -20,7 +20,7 @@
@@ -150,6 +150,11 @@ end map.osbControl = new OpenLayers.Control.OpenStreetBugs(map.osbLayer); map.addControl(map.osbControl); + + var lBug = document.getElementById('ReportBug'); + lBug.addEventListener('click',function (e) { + map.osbControl.activate(); document.getElementById("map_OpenLayers_Container").style.cursor = "crosshair"; if (e.stopPropagation) e.stopPropagation(); },false); + <% end %>