X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/8815700a773665fe861c1bdc5543948de1148829..1fe70eb6519ee21eae6cc4ba9df59b11dcef6466:/app/views/export/start.rjs diff --git a/app/views/export/start.rjs b/app/views/export/start.rjs index 4323cf7f4..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(); - $("max_scale").innerHTML = roundScale(max_scale); + if ($("format_mapnik").checked && $("mapnik_scale").value < max_scale) { + $("export_commit").disabled = true; + } else { + $("export_commit").disabled = false; + } + + $("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]; @@ -151,6 +160,36 @@ page << <