X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/cdfe2ac21ec01344b4b10d566582e7cc2b2eb7cb..22408c3e5bbce14b70b56be3a02122e2db3de896:/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() {