[Mapbender-commits] r8158 - trunk/mapbender/http/plugins

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Mon Sep 19 07:39:07 EDT 2011


Author: verenadiewald
Date: 2011-09-19 04:39:07 -0700 (Mon, 19 Sep 2011)
New Revision: 8158

Modified:
   trunk/mapbender/http/plugins/mb_print.php
Log:
check if jqForm[0].coordinates and jqForm[0].angle exist

Modified: trunk/mapbender/http/plugins/mb_print.php
===================================================================
--- trunk/mapbender/http/plugins/mb_print.php	2011-09-19 11:38:19 UTC (rev 8157)
+++ trunk/mapbender/http/plugins/mb_print.php	2011-09-19 11:39:07 UTC (rev 8158)
@@ -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