]> git.openstreetmap.org Git - rails.git/blobdiff - public/javascripts/site.js
Fix multiple issues with links to /history from the homepage. Thanks to Ed Avis for...
[rails.git] / public / javascripts / site.js
index d381c02314d2b9e7761fa0fac387a05b266c444d..bf4eda9127432fa27766670677868a5d7af97012 100644 (file)
@@ -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");';