X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/a5b784bdf7e093c76d0c09c56ae274c93c4cb956..104ba9c57ab55051988902dacc5e12a6b33554b2:/app/assets/javascripts/index/export.js?ds=inline diff --git a/app/assets/javascripts/index/export.js b/app/assets/javascripts/index/export.js index a2d6c4f07..3d1dd3ce3 100644 --- a/app/assets/javascripts/index/export.js +++ b/app/assets/javascripts/index/export.js @@ -51,12 +51,7 @@ OSM.Export = function(map) { page.pushstate = page.popstate = function(path) { $("#export_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() { @@ -69,6 +64,7 @@ OSM.Export = function(map) { $("#sidebar_content .close").on("click", page.minimizeSidebar); update(); + return map.getState(); }; page.unload = function() {