X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/c2333c603e1ad3352109a05150f2c47ad468f7ef..cc4f133e64a1f0d963f60fb40045145a530d5dbb:/app/views/site/index.html.erb diff --git a/app/views/site/index.html.erb b/app/views/site/index.html.erb index f604267d8..5eb8ae228 100644 --- a/app/views/site/index.html.erb +++ b/app/views/site/index.html.erb @@ -285,12 +285,14 @@ end $(document).ready(function () { $("#exportanchor").click(function (e) { - $.ajax({ url: "<%= url_for :controller => :export, :action => :start %>" }); + $.ajax({ url: "<%= url_for :controller => :export, :action => :start %>", success: function (sidebarHtml) { + startExport(sidebarHtml); + }}); e.preventDefault(); }); <% if params[:action] == 'export' -%> - $.ajax({ url: "<%= url_for :controller => :export, :action => :start %>" }); + $("#exportanchor").click(); <% end -%> <% if params[:query] -%>