]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/site/index.html.erb
Merge -r 20198:20540 from trunc into openstreetbugs branch
[rails.git] / 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 %>