]> git.openstreetmap.org Git - rails.git/commitdiff
The value of mapParams.object is always a node/way/relation now
authorTom Hughes <tom@compton.nu>
Thu, 5 Dec 2013 09:47:22 +0000 (09:47 +0000)
committerTom Hughes <tom@compton.nu>
Thu, 5 Dec 2013 09:47:22 +0000 (09:47 +0000)
app/views/site/_id.html.erb

index cb0c53fc39472e20cb8faffe43f50e0202f32319..6409582cd1133cd43ebfe3e08c38f5a07e462f65 100644 (file)
@@ -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 -%>