]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/history.js
No hash on browse pages, closes #35
[rails.git] / app / assets / javascripts / index / history.js
index d27a069439233748cefee2a2b580c100c4f5f5e7..afae6640f87b566d8ab210bacbe18f3d8ce6b58a 100644 (file)
@@ -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);