X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/cdfe2ac21ec01344b4b10d566582e7cc2b2eb7cb..104ba9c57ab55051988902dacc5e12a6b33554b2:/app/assets/javascripts/index/export.js?ds=sidebyside diff --git a/app/assets/javascripts/index/export.js b/app/assets/javascripts/index/export.js index 413caea3f..3d1dd3ce3 100644 --- a/app/assets/javascripts/index/export.js +++ b/app/assets/javascripts/index/export.js @@ -51,7 +51,7 @@ OSM.Export = function(map) { page.pushstate = page.popstate = function(path) { $("#export_tab").addClass("current"); - $("#sidebar_content").load(path, page.load); + OSM.loadSidebarContent(path, page.load); }; page.load = function() { @@ -64,6 +64,7 @@ OSM.Export = function(map) { $("#sidebar_content .close").on("click", page.minimizeSidebar); update(); + return map.getState(); }; page.unload = function() {