]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/history.js
Fix new note wrapping
[rails.git] / app / assets / javascripts / index / history.js
index 6cbc86307b97b4446214b9d977fdce95207c5a85..afae6640f87b566d8ab210bacbe18f3d8ce6b58a 100644 (file)
@@ -99,12 +99,7 @@ OSM.History = function(map) {
 
   page.pushstate = page.popstate = function(path) {
     $("#history_tab").addClass("current");
 
   page.pushstate = page.popstate = function(path) {
     $("#history_tab").addClass("current");
-    $("#sidebar_content").load(path, function(a, b, xhr) {
-      if (xhr.getResponseHeader('X-Page-Title')) {
-        document.title = xhr.getResponseHeader('X-Page-Title');
-      }
-      page.load();
-    });
+    OSM.loadSidebarContent(path, page.load);
   };
 
   page.load = function() {
   };
 
   page.load = function() {