Minor fix to updated OpenLayers
authorKai Krueger <kakrueger@gmail.com>
Wed, 20 Apr 2011 04:49:10 +0000 (22:49 -0600)
committerKai Krueger <kakrueger@gmail.com>
Wed, 20 Apr 2011 04:49:10 +0000 (22:49 -0600)
app/views/site/index.html.erb

index 70402a1c94014a89fcb9e72e49fd4d2bd929d727..7450eb2bae5ff10ecbe069d2998d4178c423faed 100644 (file)
@@ -25,7 +25,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 href="/" id="ReportBug">Report a problem</a>      
+  <a href="javascript:void()" id="ReportBug">Report a problem</a>      
 </div>
 
 <div id="attribution">
@@ -131,7 +131,7 @@ end
 
   function createBugCallBack() {
        map.osbControl.deactivate();
-       document.getElementById("map_OpenLayers_Container").style.cursor = "default";
+       document.getElementById("OpenLayers.Map_18_OpenLayers_Container").style.cursor = "default";
   }
 
   function mapInit(){
@@ -157,11 +157,12 @@ end
       map.addLayer(map.osbLayer);
 
       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);
+               map.osbControl.activate(); document.getElementById("OpenLayers.Map_18_OpenLayers_Container").style.cursor = "crosshair" },false);
 
 
     <% end %>