- if (window.location.pathname === '/history') {
- data.bbox = map.getBounds().wrap().toBBoxString();
+ function displayMoreChangesets(html) {
+ $("#sidebar_content .changeset_more").replaceWith(html);
+ var oldList = $("#sidebar_content .changesets ol").first();
+ var newList = oldList.next("ol");
+ newList.children().appendTo(oldList);
+ newList.remove();
+ }
+
+ function update() {
+ const data = new URLSearchParams();
+
+ if (window.location.pathname === "/history") {
+ data.set("bbox", map.getBounds().wrap().toBBoxString());
+ var feedLink = $("link[type=\"application/atom+xml\"]"),
+ feedHref = feedLink.attr("href").split("?")[0];
+ feedLink.attr("href", feedHref + "?" + data);