Refactor updatelinks to avoid exceptions in updateLocation
This commit is contained in:
parent
3cf3d888b2
commit
824a474d93
3 changed files with 8 additions and 8 deletions
|
@ -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});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue