From: Tom Hughes Date: Thu, 5 Dec 2013 09:47:22 +0000 (+0000) Subject: The value of mapParams.object is always a node/way/relation now X-Git-Tag: live~4554 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/7318ee4b93a5dbcb7fece8553be65f2fb858e68a The value of mapParams.object is always a node/way/relation now --- diff --git a/app/views/site/_id.html.erb b/app/views/site/_id.html.erb index cb0c53fc3..6409582cd 100644 --- a/app/views/site/_id.html.erb +++ b/app/views/site/_id.html.erb @@ -6,9 +6,7 @@ var params = {}; var mapParams = OSM.mapParams(); - if (mapParams.object && - mapParams.object.type !== 'note' && - mapParams.object.type !== 'changeset') { + if (mapParams.object) { params.id = mapParams.object.type[0] + mapParams.object.id; } else { <% if @lat && @lon -%>