X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e7d200c4a6d0904ab1e027518eca7200b0ca9a08..fec9dc84c05a496141d4e7fedd21765ddcceba06:/app/assets/javascripts/index/history.js diff --git a/app/assets/javascripts/index/history.js b/app/assets/javascripts/index/history.js index d27a06943..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,12 +99,10 @@ OSM.History = function(map) { page.pushstate = page.popstate = function(path) { $("#history_tab").addClass("current"); - map.invalidateSize(); - $("#sidebar_content").load(path, page.load); + OSM.loadSidebarContent(path, page.load); }; page.load = function() { - $("#sidebar").removeClass("minimized"); map .on("moveend", loadData) .addLayer(group);