X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/e05adbb917adef34700858e9c0b46cc81cf59120..eeb9866d50e35b8f8b75e59aed582caba533778f:/app/views/site/_id.html.erb diff --git a/app/views/site/_id.html.erb b/app/views/site/_id.html.erb index f88942669..a6f42e43c 100644 --- a/app/views/site/_id.html.erb +++ b/app/views/site/_id.html.erb @@ -26,9 +26,17 @@ params.background = hashParams.background; } + if (hashParams.comment) { + params.comment = hashParams.comment; + } + +<% if params[:gpx] -%> + params.gpx = '<%= trace_data_url(params[:gpx], :format => :xml) %>'; +<% else -%> if (hashParams.gpx) { params.gpx = hashParams.gpx; } +<% end -%> $('#id-embed').attr('src', '<%= id_url :locale => params[:locale] %>#' + querystring.stringify(params));