+ 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() {
+ var data = { list: "1" };
+
+ 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);
+ }
+