X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e05adbb917adef34700858e9c0b46cc81cf59120..dca0be1886d9b9fcd2cab1b7c82ac4132fbf722b:/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));