X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/42822a8b89443d5fa6ec815d82684698d2d80b07..59a6ed0e207cc83e286e3e9b1235427756f61f7d:/app/views/site/index.html.erb 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 %>