X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/d3c60874092c63b493818f227f31027327b595e3..d7663e7d142093cbcc8340d12bfb74a35ba108c1:/public/javascripts/site.js diff --git a/public/javascripts/site.js b/public/javascripts/site.js index d381c0231..bf4eda912 100644 --- a/public/javascripts/site.js +++ b/public/javascripts/site.js @@ -62,8 +62,7 @@ function updatelinks(lon,lat,zoom,layers,extents) { if (node) { if (zoom >= 11) { var args = new Object(); - //conjure a bounding box centred at the lat/lon. - //TODO: feed actual bounds of the window through to here somehow. + //set bbox param from 'extents' object minlon = extents.left; minlat = extents.bottom; maxlon = extents.right; @@ -73,7 +72,7 @@ function updatelinks(lon,lat,zoom,layers,extents) { maxlon = Math.round(maxlon * decimals) / decimals; maxlat = Math.round(maxlat * decimals) / decimals; args.bbox = minlon + "," + minlat + "," + maxlon + "," + maxlat; - node.href = setArgs("history/", args); + node.href = setArgs("/history", args); node.style.fontStyle = 'normal'; } else { node.href = 'javascript:alert("zoom in to see editing history");';