X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/637799f1f57ab48254a5b6eaa0f78896ae41c456..9029e47ce9e41a220710d117868e14d8cd1c719a:/app/assets/javascripts/index/export.js diff --git a/app/assets/javascripts/index/export.js b/app/assets/javascripts/index/export.js index 02dcdd440..23c503236 100644 --- a/app/assets/javascripts/index/export.js +++ b/app/assets/javascripts/index/export.js @@ -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(); };