]> 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 199f226f5e18b1e5713c610f870ad7e0798f73ed..851dbb9aef522c7cddf9f67ca21997293ec55e96 100644 (file)
@@ -51,13 +51,10 @@ OSM.Export = function(map) {
 
   page.pushstate = page.popstate = function(path) {
     $("#export_tab").addClass("current");
-    $("#sidebar").removeClass("minimized");
-    map.invalidateSize();
-    $("#sidebar_content").load(path, page.load);
+    OSM.loadSidebarContent(path, page.load);
   };
 
   page.load = function() {
-    $("#sidebar").removeClass("minimized");
     map
       .addLayer(locationFilter)
       .on("moveend", update);