]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/export.js
Prevent empty search
[rails.git] / app / assets / javascripts / index / export.js
index 4842fff0ca4c081b154e4e79845db2ba0113c3cf..851dbb9aef522c7cddf9f67ca21997293ec55e96 100644 (file)
@@ -51,12 +51,7 @@ OSM.Export = function(map) {
 
   page.pushstate = page.popstate = function(path) {
     $("#export_tab").addClass("current");
 
   page.pushstate = page.popstate = function(path) {
     $("#export_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() {