[Mapbender-commits] r8157 - branches/2.7/http/plugins
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Mon Sep 19 07:38:19 EDT 2011
Author: verenadiewald
Date: 2011-09-19 04:38:19 -0700 (Mon, 19 Sep 2011)
New Revision: 8157
Modified:
branches/2.7/http/plugins/mb_print.php
Log:
check if jqForm[0].coordinates and jqForm[0].angle exist
Modified: branches/2.7/http/plugins/mb_print.php
===================================================================
--- branches/2.7/http/plugins/mb_print.php 2011-09-19 11:24:23 UTC (rev 8156)
+++ branches/2.7/http/plugins/mb_print.php 2011-09-19 11:38:19 UTC (rev 8157)
@@ -161,10 +161,14 @@
afterChangeAngle : function (obj) {
if (typeof(obj) == "object") {
if (typeof(obj.angle) == "number") {
+ if(typeof(jqForm[0].angle) != "undefined") {
jqForm[0].angle.value = obj.angle;
+ }
}
if (obj.coordinates) {
+ if(typeof(jqForm[0].coordinates) != "undefined") {
jqForm[0].coordinates.value = String(obj.coordinates);
+ }
}
}
},
@@ -174,7 +178,9 @@
jqForm[0].scale.value = parseInt(obj.scale / 10, 10) * 10;
}
if (obj.coordinates) {
+ if(typeof(jqForm[0].coordinates) != "undefined") {
jqForm[0].coordinates.value = String(obj.coordinates);
+ }
}
}
}
More information about the Mapbender_commits
mailing list