$("#tr-changeset-" + id).removeClass("selected");
}
- function init() {
+ $(document).ready(function () {
var map = createMap("changeset_list_map", {
controls: [
new OpenLayers.Control.Navigation(),
- new OpenLayers.Control.PanZoom(),
+ new OpenLayers.Control.Zoom(),
new OpenLayers.Control.PanZoomBar()
]
});
<% else %>
map.zoomToExtent(proj(bounds));
<% end %>
- }
-
- Event.observe(window, "load", init);
+ });
</script>