Refactor updatelinks to avoid exceptions in updateLocation

This commit is contained in:
Tom Hughes 2012-10-05 16:02:26 +01:00
parent 3cf3d888b2
commit 824a474d93
3 changed files with 8 additions and 8 deletions

View file

@ -73,7 +73,7 @@ $(document).ready(function () {
var extents = unproj(map.getExtent());
var expiry = new Date();
updatelinks(lonlat.lon, lonlat.lat, zoom, layers, extents.left, extents.bottom, extents.right, extents.top, params.object.type, params.object.id);
updatelinks(lonlat.lon, lonlat.lat, zoom, layers, extents.left, extents.bottom, extents.right, extents.top, params.object);
expiry.setYear(expiry.getFullYear() + 10);
$.cookie("_osm_location", [lonlat.lon, lonlat.lat, zoom, layers].join("|"), {expires: expiry});