[Mapbender-commits] r8167 - branches/2.7/http/plugins
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Fri Sep 23 10:18:58 EDT 2011
Author: verenadiewald
Date: 2011-09-23 07:18:58 -0700 (Fri, 23 Sep 2011)
New Revision: 8167
Modified:
branches/2.7/http/plugins/mb_print.php
Log:
check scale back again on keyup instead of blur -> don't react on scale changes if scale < 10 (would be rounded to 0)
Modified: branches/2.7/http/plugins/mb_print.php
===================================================================
--- branches/2.7/http/plugins/mb_print.php 2011-09-23 11:47:37 UTC (rev 8166)
+++ branches/2.7/http/plugins/mb_print.php 2011-09-23 14:18:58 UTC (rev 8167)
@@ -599,14 +599,19 @@
if (e.keyCode === 13) {
return false;
}
- }).blur(function (e) {
+ }).keyup(function (e) {
if (e.keyCode === 13) {
return false;
}
- var scale = parseInt(this.value, 10);
+
+ var scale = parseInt(this.value, 10);
if (isNaN(scale) || typeof printBox === "undefined") {
return true;
}
+
+ if(scale < 10) {
+ return true;
+ }
printBox.setScale(scale);
return true;
});
More information about the Mapbender_commits
mailing list