[Mapbender-commits] r3011 - branches/2.5/http/print

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Fri Sep 26 03:22:40 EDT 2008


Author: astrid_emde
Date: 2008-09-26 03:22:39 -0400 (Fri, 26 Sep 2008)
New Revision: 3011

Modified:
   branches/2.5/http/print/mod_printPDF.php
Log:
make sure that for,at is selected. no refresh without selected format

Modified: branches/2.5/http/print/mod_printPDF.php
===================================================================
--- branches/2.5/http/print/mod_printPDF.php	2008-09-26 07:12:47 UTC (rev 3010)
+++ branches/2.5/http/print/mod_printPDF.php	2008-09-26 07:22:39 UTC (rev 3011)
@@ -137,7 +137,7 @@
 		size = document.getElementById('size').options[document.getElementById('size').selectedIndex].value;
 		format = document.getElementById('format').options[document.getElementById('format').selectedIndex].value;
 
-		if(size != "" && format != ""){
+		if(size != "false" && format != "false"){
 			var ind = pt.getMapObjIndexByName(target);
 			var coord = pt.mb_mapObj[ind].extent.split(",");
 			var centerX = parseFloat(coord[0]) + (parseFloat(coord[2]) - parseFloat(coord[0]))/2
@@ -266,7 +266,7 @@
 		mod_legend_print();
 	}
 	function printMap(){
-		if(size != "" && (format == "portrait" || format == "landscape")){
+		if(size != "false" && (format == "portrait" || format == "landscape")){
 			refreshParams();
 			if(document.form1.c1.value != comment1){
 				document.form1.comment1.value = document.form1.c1.value;



More information about the Mapbender_commits mailing list