]> git.openstreetmap.org Git - rails.git/commitdiff
Fixed small bug where clicking on the "Report a Problem" link would directly create...
authorKai Krueger <kakrueger@gmail.com>
Sat, 6 Mar 2010 09:44:54 +0000 (09:44 +0000)
committerKai Krueger <kakrueger@gmail.com>
Sat, 6 Mar 2010 09:44:54 +0000 (09:44 +0000)
app/views/site/index.html.erb

index 9f99b0bc80101ac15923f5d8942b5621b6cf36c1..69e2a0b27a1672264f8f017d0d6da80549e1e3bc 100644 (file)
@@ -20,7 +20,7 @@
   <div id="permalink">
     <a href="/" id="permalinkanchor"><%= t 'site.index.permalink' %></a><br/>
     <a href="/" id="shortlinkanchor"><%= t 'site.index.shortlink' %></a><br/>
-    <a onClick="map.osbControl.activate(); return false">Report a problem</a>
+       <a id="ReportBug">Report a problem</a>  
   </div>
 </div> 
 
@@ -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 %>