url: window.location.pathname,
method: "GET",
data: {bbox: map.getBounds().toBBoxString()},
- success: function(html) {
+ success: function(html, status, xhr) {
$('#sidebar_content .changesets').html(html);
updateMap();
}
page.pushstate = page.popstate = function(path) {
$("#history_tab").addClass("current");
- $("#sidebar_content").load(path, page.load);
+ OSM.loadSidebarContent(path, page.load);
};
page.load = function() {