X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e373c6383713967cb2e4769c127fc2e543691dcf..bc309badb8c3afea20c17ff9ef44861d4f7bcf13:/public/javascripts/site.js diff --git a/public/javascripts/site.js b/public/javascripts/site.js index b1690b7d1..6fb68e65a 100644 --- a/public/javascripts/site.js +++ b/public/javascripts/site.js @@ -11,7 +11,9 @@ function updatelinks(lon,lat,zoom,layers) { args["lat"] = lat; args["lon"] = lon; args["zoom"] = zoom; - args["layers"] = layers; + if (layers) { + args["layers"] = layers; + } node.href = setArgs(node.href, args); } @@ -21,7 +23,9 @@ function updatelinks(lon,lat,zoom,layers) { args["lat"] = lat; args["lon"] = lon; args["zoom"] = zoom; - args["layers"] = layers; + if (layers) { + args["layers"] = layers; + } node.href = setArgs(node.href, args); }