X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/bdc536d126d884b0795bf82784fc81d4a5e47dcc..f8cadaf4803821a4e1d30aa1e91b0c2e4c920aea:/app/assets/javascripts/index.js?ds=inline diff --git a/app/assets/javascripts/index.js b/app/assets/javascripts/index.js index 5cf9c15ff..e96ffbf02 100644 --- a/app/assets/javascripts/index.js +++ b/app/assets/javascripts/index.js @@ -4,7 +4,7 @@ //= require index/key $(document).ready(function () { - var permalinks = $("#permalink").html(); + var permalinks = $("#permalink").detach().html(); var marker; var params = OSM.mapParams(); var map = createMap("map"); @@ -65,10 +65,10 @@ $(document).ready(function () { }); function updateLocation() { - var center = map.getCenter(); + var center = map.getCenter().wrap(); var zoom = map.getZoom(); var layers = getMapLayers(); - var extents = map.getBounds(); + var extents = map.getBounds().wrap(); updatelinks(center.lng, center.lat,