X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e7d200c4a6d0904ab1e027518eca7200b0ca9a08..22408c3e5bbce14b70b56be3a02122e2db3de896:/app/assets/javascripts/index/export.js diff --git a/app/assets/javascripts/index/export.js b/app/assets/javascripts/index/export.js index 23c503236..851dbb9ae 100644 --- a/app/assets/javascripts/index/export.js +++ b/app/assets/javascripts/index/export.js @@ -46,17 +46,15 @@ OSM.Export = function(map) { function validateControls() { $("#export_osm_too_large").toggle(getBounds().getSize() > OSM.MAX_REQUEST_AREA); + $("#export_commit").toggle(getBounds().getSize() < OSM.MAX_REQUEST_AREA); } 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);