From be4c4d186b8cc4a0f5d1acb57c9d04b23cf1583e Mon Sep 17 00:00:00 2001 From: Kai Krueger Date: Sat, 6 Mar 2010 09:44:54 +0000 Subject: [PATCH] Fixed small bug where clicking on the "Report a Problem" link would directly create a bug-report --- app/views/site/index.html.erb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 %> -- 2.43.2