[Mapbender-commits] r7831 - branches/2.7/http/plugins

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Fri May 27 06:11:38 EDT 2011


Author: verenadiewald
Date: 2011-05-27 03:11:38 -0700 (Fri, 27 May 2011)
New Revision: 7831

Modified:
   branches/2.7/http/plugins/mb_print.php
Log:
http://trac.osgeo.org/mapbender/ticket/830

Modified: branches/2.7/http/plugins/mb_print.php
===================================================================
--- branches/2.7/http/plugins/mb_print.php	2011-05-27 10:10:10 UTC (rev 7830)
+++ branches/2.7/http/plugins/mb_print.php	2011-05-27 10:11:38 UTC (rev 7831)
@@ -461,8 +461,17 @@
 					myId + "_frame' width='0' height='0' style='display:none'></iframe>"
 				).appendTo("body");
 			}
-			if ($.browser.msie && $.browser.version === "6.0") {
-				var newWin = window.open(stripslashes(res.outputFileName), "<?php echo htmlentities(_mb("print document"), ENT_QUOTES, "UTF-8");?>", "width=200,height=200,left=700,top=200,resizable=yes");
+			if ($.browser.msie) {
+ 				$('<div></div>')
+					.attr('id', 'ie-print')
+					.append($('<p>Ihr PDF wurde erstellt und kann nun heruntergeladen werden:</p>'))
+					.append($('<a>Zum Herunterladen hier klicken</a>')
+						.attr('href', stripslashes(res.outputFileName))
+						.click(function() { $(this).parent().dialog('destroy');	}))
+					.appendTo('body')
+					.dialog({
+						title: 'PDF-Druck'
+					});
 			}
 			else {
 				window.frames[myId + "_frame"].location.href = 



More information about the Mapbender_commits mailing list