]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/site/index.rhtml
Make openSidebar() work with no argument.
[rails.git] / app / views / site / index.rhtml
index 35ce1e2fdda9df458f516419f7d3b6eda748e2d8..94b24debf54d41162759c182f069ab03e29d8108 100644 (file)
@@ -125,7 +125,7 @@ by the OpenStreetMap project and it's contributors.
   function setPosition(lat, lon, zoom) {
     var centre = new OpenLayers.LonLat(lon, lat);
 
-    map.setCenter(centre, zoom);
+    setMapCenter(centre, zoom);
 
     if (marker)
       removeMarkerFromMap(marker);
@@ -180,5 +180,9 @@ by the OpenStreetMap project and it's contributors.
 
   window.onload = handleResize;
   window.onresize = handleResize;
+
+  <% if params['action'] == 'export' %>
+  <%= remote_function :url => { :controller => 'export', :action => 'start' } %>
+  <% end %>
 // -->
 </script>