X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/d0e291552e5da004f1582d7ce577b8ccf7f546df..be4c4d186b8cc4a0f5d1acb57c9d04b23cf1583e:/app/views/site/index.html.erb?ds=sidebyside 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 %>