]> git.openstreetmap.org Git - rails.git/commitdiff
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 abf9e671ddb1dd0b161429fc6cb5edaf2df4ca79..dbbf584b49ab5140109f1914218868262bcf696c 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