X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/cdfe2ac21ec01344b4b10d566582e7cc2b2eb7cb..104ba9c57ab55051988902dacc5e12a6b33554b2:/app/assets/javascripts/index/history.js diff --git a/app/assets/javascripts/index/history.js b/app/assets/javascripts/index/history.js index be62d3734..afae6640f 100644 --- a/app/assets/javascripts/index/history.js +++ b/app/assets/javascripts/index/history.js @@ -47,7 +47,7 @@ OSM.History = function(map) { 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(); } @@ -99,7 +99,7 @@ OSM.History = function(map) { page.pushstate = page.popstate = function(path) { $("#history_tab").addClass("current"); - $("#sidebar_content").load(path, page.load); + OSM.loadSidebarContent(path, page.load); }; page.load = function() {