[Mapbender-commits] r8595 - branches/2.7/http/plugins trunk/mapbender/http/plugins

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Apr 9 03:32:09 PDT 2013


Author: verenadiewald
Date: 2013-04-09 03:32:08 -0700 (Tue, 09 Apr 2013)
New Revision: 8595

Modified:
   branches/2.7/http/plugins/mb_print.php
   trunk/mapbender/http/plugins/mb_print.php
Log:
The printBox is repainted after every mapRequest: Repainting the box sets again values for scale, angle and coordinates (printBox.repaint()), even if printBox is hided. These values have to be cleared after repainting to avoid printing with these printBox params when the printBox is not visible.

Modified: branches/2.7/http/plugins/mb_print.php
===================================================================
--- branches/2.7/http/plugins/mb_print.php	2013-04-09 09:37:55 UTC (rev 8594)
+++ branches/2.7/http/plugins/mb_print.php	2013-04-09 10:32:08 UTC (rev 8595)
@@ -124,6 +124,16 @@
 	eventAfterMapRequest.register(function () {
 		if (printBox !== null) {
 			printBox.repaint();
+			
+			if(!printBox.isVisible()) {
+				//$("#printboxScale").val("");
+           		//$("#printboxCoordinates").val("");
+           		//$("#printboxAngle").val("");
+           		
+           		$("#printPDF_form #scale").val("");
+				$("#printPDF_form #coordinates").val("");
+				$("#printPDF_form #angle").val("");
+			}
 		}
 	});
 	/**

Modified: trunk/mapbender/http/plugins/mb_print.php
===================================================================
--- trunk/mapbender/http/plugins/mb_print.php	2013-04-09 09:37:55 UTC (rev 8594)
+++ trunk/mapbender/http/plugins/mb_print.php	2013-04-09 10:32:08 UTC (rev 8595)
@@ -124,6 +124,16 @@
 	eventAfterMapRequest.register(function () {
 		if (printBox !== null) {
 			printBox.repaint();
+			
+			if(!printBox.isVisible()) {
+				//$("#printboxScale").val("");
+           		//$("#printboxCoordinates").val("");
+           		//$("#printboxAngle").val("");
+           		
+           		$("#printPDF_form #scale").val("");
+				$("#printPDF_form #coordinates").val("");
+				$("#printPDF_form #angle").val("");
+			}
 		}
 	});
 	/**



More information about the Mapbender_commits mailing list