]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/export/start.rjs
Add a title to the changeset lists. Closes #1938.
[rails.git] / app / views / export / start.rjs
index dd879132a4b26f65370622a0c545a7d26d1ec978..8a17ca6ae416eb9e6ee4ffbfe759f1ffe4d65bf6 100644 (file)
@@ -190,7 +190,7 @@ page << <<EOJ
   function validateControls() {
     var bounds = new OpenLayers.Bounds($("minlon").value, $("minlat").value, $("maxlon").value, $("maxlat").value);
 
-    if (bounds.getWidth() * bounds.getHeight() > 0.25) {
+    if (bounds.getWidth() * bounds.getHeight() > #{APP_CONFIG['max_request_area']}) {
       $("format_osm").disabled = true;
       $("format_osm").checked = false;
       $("export_osm").style.display = "none";