X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/716262f211a8983a4272eabf3fdba9877b068b65..2a35f530bd5a474e83c8068ddc843eb0b4936b42:/app/views/changeset/_map.html.erb diff --git a/app/views/changeset/_map.html.erb b/app/views/changeset/_map.html.erb index bc1e795b0..88dd53c99 100644 --- a/app/views/changeset/_map.html.erb +++ b/app/views/changeset/_map.html.erb @@ -28,13 +28,13 @@ 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 %> }