Make sure the maximum scale is set when export is opened
authorTom Hughes <tom@compton.nu>
Thu, 24 Nov 2011 21:31:54 +0000 (21:31 +0000)
committerTom Hughes <tom@compton.nu>
Thu, 24 Nov 2011 21:31:54 +0000 (21:31 +0000)
app/views/export/start.rjs

index abf9e67..dbbf584 100644 (file)
@@ -341,14 +341,11 @@ page << <<EOJ
 
     $("mapnik_image_width").innerHTML = size.w;
     $("mapnik_image_height").innerHTML = size.h;
-  }
 
-  function mapnikScaleChanged() {
-    mapnikSizeChanged();
     validateControls();
   }
 
-  $("mapnik_scale").onchange = mapnikScaleChanged;
+  $("mapnik_scale").onchange = mapnikSizeChanged;
 
   startExport();
 EOJ