Rewrite bbox only in place history atom links

This commit is contained in:
Anton Khorev 2022-09-07 22:13:57 +03:00
parent 2948b86eb5
commit 1fc2a70c17
2 changed files with 19 additions and 5 deletions

View file

@ -48,6 +48,9 @@ OSM.History = function (map) {
if (window.location.pathname === "/history") {
data.bbox = map.getBounds().wrap().toBBoxString();
var feedLink = $("link[type=\"application/atom+xml\"]"),
feedHref = feedLink.attr("href").split("?")[0];
feedLink.attr("href", feedHref + "?bbox=" + data.bbox);
}
$.ajax({
@ -59,11 +62,6 @@ OSM.History = function (map) {
updateMap();
}
});
var feedLink = $("link[type=\"application/atom+xml\"]"),
feedHref = feedLink.attr("href").split("?")[0];
feedLink.attr("href", feedHref + "?bbox=" + data.bbox);
}
function loadMore(e) {