X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/3b1f455dd9c7b64933f952350081728458d190a1..14a7d1abfcdc900ab2d8b6f30fc2033667110f51:/app/views/site/index.html.erb?ds=sidebyside diff --git a/app/views/site/index.html.erb b/app/views/site/index.html.erb index 25f0c8585..9d5024326 100644 --- a/app/views/site/index.html.erb +++ b/app/views/site/index.html.erb @@ -227,7 +227,7 @@ end updatelinks(lonlat.lon, lonlat.lat, zoom, layers, extents.left, extents.bottom, extents.right, extents.top, objtype, objid); expiry.setYear(expiry.getFullYear() + 10); - document.cookie = "_osm_location=" + lonlat.lon + "|" + lonlat.lat + "|" + zoom + "|" + layers + "; expires=" + expiry.toGMTString(); + $.cookie("_osm_location", [lonlat.lon, lonlat.lat, zoom, layers].join("|"), {expires: expiry}); } function remoteEditHandler(event) {