X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/7fa1041340e3f1ad1074bfd8376b39535b862a69..19a57c97b16d2dae962739f49732c081acaf3202:/app/views/export/start.rjs?ds=inline diff --git a/app/views/export/start.rjs b/app/views/export/start.rjs index 5e4a2b91c..3f1d73d68 100644 --- a/app/views/export/start.rjs +++ b/app/views/export/start.rjs @@ -12,23 +12,20 @@ page << < 0.25) { $("format_osm").disabled = true; $("format_osm").checked = false; - - formatChanged(); + $("export_osm").style.display = "none"; } else { $("format_osm").disabled = false; } - - var max_zoom = maxOsmarenderZoom(); + var max_scale = maxMapnikScale(); - $("mapnik_max_scale").innerHTML = roundScale(max_scale); + if ($("format_mapnik").checked && $("mapnik_scale").value < max_scale) { + $("export_commit").disabled = true; + } else { + $("export_commit").disabled = false; + } - mapnikSizeChanged(); + $("mapnik_max_scale").innerHTML = roundScale(max_scale); + + var max_zoom = maxOsmarenderZoom(); for (var o = 0; o < $("osmarender_zoom").options.length; o++) { var option = $("osmarender_zoom").options[o]; @@ -157,6 +160,36 @@ page << <