]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/export.js
Hide export button when export area is too large, closes #30
[rails.git] / app / assets / javascripts / index / export.js
index 23c50323647a16313da162971dd4410215ff82b4..199f226f5e18b1e5713c610f870ad7e0798f73ed 100644 (file)
@@ -46,6 +46,7 @@ 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) {