]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/export.js
Sidebar close reverts to 'view' state
[rails.git] / app / assets / javascripts / index / export.js
index 02dcdd4402eb2676db62c1132f197dd33c0ecf33..23c50323647a16313da162971dd4410215ff82b4 100644 (file)
@@ -52,16 +52,18 @@ OSM.Export = function(map) {
     $("#export_tab").addClass("current");
     $("#sidebar").removeClass("minimized");
     map.invalidateSize();
-    $('#sidebar_content').load(path, page.load);
+    $("#sidebar_content").load(path, page.load);
   };
 
   page.load = function() {
+    $("#sidebar").removeClass("minimized");
     map
       .addLayer(locationFilter)
       .on("moveend", update);
 
     $("#maxlat, #minlon, #maxlon, #minlat").change(boundsChanged);
     $("#drag_box").click(enableFilter);
+    $("#sidebar_content .close").on("click", page.minimizeSidebar);
 
     update();
   };