X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/6baccfaddd190d730b626204e9cf81c2504995bf..1288a89bdcb1299d8dded7b24c8afce0c4dac7b8:/public/javascripts/site.js diff --git a/public/javascripts/site.js b/public/javascripts/site.js index b7ad7d7e4..3e28e0c0a 100644 --- a/public/javascripts/site.js +++ b/public/javascripts/site.js @@ -55,6 +55,9 @@ function updatelinks(lon,lat,zoom,layers,minlon,minlat,maxlon,maxlat,objtype,obj args.lat = lat; args.lon = lon; args.zoom = zoom; + if (objtype && objid) { + args[objtype] = objid; + } node.href = setArgs("/edit", args); node.style.fontStyle = 'normal'; } else { @@ -231,7 +234,7 @@ function makeShortCode(lat, lon, zoom) { str += char_array.charAt(digit); } for (var i = 0; i < ((zoom + 8) % 3); ++i) { - str += "="; + str += "-"; } return str; }