X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/8bc8e537b273e8e260a12f598d77dc4135f9d32c..34b147266c397bb1318bbfefb48df1c704855843:/public/javascripts/site.js?ds=sidebyside diff --git a/public/javascripts/site.js b/public/javascripts/site.js index aefd9c8b6..5340ea99e 100644 --- a/public/javascripts/site.js +++ b/public/javascripts/site.js @@ -2,7 +2,7 @@ * Called as the user scrolls/zooms around to aniplate hrefs of the * view tab and various other links */ -function updatelinks(lon,lat,zoom,layers,minlon,minlat,maxlon,maxlat) { +function updatelinks(lon,lat,zoom,layers,minlon,minlat,maxlon,maxlat, obj_type, obj_id) { var decimals = Math.pow(10, Math.floor(zoom/3)); var node; @@ -18,6 +18,9 @@ function updatelinks(lon,lat,zoom,layers,minlon,minlat,maxlon,maxlat) { if (layers) { args["layers"] = layers; } + if (obj_type && obj_id) { + args[obj_type] = obj_id; + } node.href = setArgs(node.href, args); }