]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/site/index.html.erb
Use a param to trigger export rather than a separate action
[rails.git] / app / views / site / index.html.erb
index 9b4405feb23dd776b669fe575548c42730fffab3..4e725f90679efc680e1bbaabe112aa52595f4de8 100644 (file)
@@ -10,7 +10,7 @@
   <% end -%>
 <% end -%>
 
-<%= render :partial => 'sidebar', :locals => { :onopen => "resizeMap();", :onclose => "resizeMap();" } %>
+<%= render :partial => 'sidebar' %>
 <%= render :partial => 'key' %>
 <%= render :partial => 'search' %>
 
@@ -125,8 +125,6 @@ else
 end
 %>
 
-<%= javascript_include_tag 'map.js' %>
-
 <%= render :partial => 'resize' %>
 
 <script type="text/javascript">
@@ -293,7 +291,7 @@ end
       e.preventDefault();
     });
 
-    <% if params[:action] == 'export' -%>
+    <% if params[:export] -%>
     $("#exportanchor").click();
     <% end -%>