From: Kai Krueger Date: Sat, 6 Mar 2010 09:44:54 +0000 (+0000) Subject: Fixed small bug where clicking on the "Report a Problem" link would directly create... X-Git-Tag: live~5616^2~234 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/be4c4d186b8cc4a0f5d1acb57c9d04b23cf1583e?ds=sidebyside Fixed small bug where clicking on the "Report a Problem" link would directly create a bug-report --- 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 %>