X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e05adbb917adef34700858e9c0b46cc81cf59120..a2cf9b5b9f568c614ad8bbf8a477326b01cefb57:/app/views/site/_id.html.erb?ds=sidebyside 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));