X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/9bae22aacbbd7037b9d34cd279466e8ab5b67431..b3ef9c06c59cdcde8e7a8f5e5e7c538f5336dc47:/app/views/export/start.rjs?ds=sidebyside diff --git a/app/views/export/start.rjs b/app/views/export/start.rjs index 1a157afca..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; + } - mapnikScaleChanged(); + $("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 << <