X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/2dfe6f3f2e911101f4e4e3b90a00e2ae97725d04..b816f5b27e8d803294e333442b61d45aa4ce1eeb:/app/assets/javascripts/index/changeset.js?ds=sidebyside diff --git a/app/assets/javascripts/index/changeset.js b/app/assets/javascripts/index/changeset.js index 75a1f7b4d..257dad5bc 100644 --- a/app/assets/javascripts/index/changeset.js +++ b/app/assets/javascripts/index/changeset.js @@ -12,13 +12,12 @@ OSM.Changeset = function (map) { page.load = function (path, id) { if (id) currentChangesetId = id; initialize(); - addChangeset(currentChangesetId, true); + addChangeset(currentChangesetId); }; - function addChangeset(id, center) { + function addChangeset(id) { map.addObject({ type: "changeset", id: parseInt(id, 10) }, function (bounds) { - if (!window.location.hash && bounds.isValid() && - (center || !map.getBounds().contains(bounds))) { + if (!window.location.hash && bounds.isValid()) { OSM.router.withoutMoveListener(function () { map.fitBounds(bounds); });