]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/changeset/_map.html.erb
Add an HTML version of the diary comment notification mail
[rails.git] / app / views / changeset / _map.html.erb
index bc1e795b0fa4026963e144af6125775670b0842f..88dd53c99a8e7847ee51119148bca318ea72405a 100644 (file)
 
     vectors.addFeatures(highlight);
 
-    $("tr-changeset-" + id).addClassName("selected");
+    $("#tr-changeset-" + id).addClass("selected");
   }
 
   function unHighlightChangeset(id) {
     vectors.removeFeatures(highlight);
 
-    $("tr-changeset-" + id).removeClassName("selected");
+    $("#tr-changeset-" + id).removeClass("selected");
   }
 
   function init() {
@@ -80,9 +80,9 @@
     selectControl.activate();
 
     <% if ! @bbox.nil? %>
-      setMapExtent(new OpenLayers.Bounds(<%= @bbox %>));
+      map.zoomToExtent(proj(new OpenLayers.Bounds(<%= @bbox %>)));
     <% else %>
-      setMapExtent(bounds);
+      map.zoomToExtent(proj(bounds));
     <% end %>
   }