]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/history.js
Improved noteLayer and dataLayer availability, closes #65
[rails.git] / app / assets / javascripts / index / history.js
index 29a3d1fb90a76bc59f0472f598433971dd845db4..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 + "?xhr=1", 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() {