[Commits] r1734 - sandbox/ahocevar/playground/ux/Printing/examples
commits at geoext.org
commits at geoext.org
Wed Jan 13 09:41:06 CET 2010
Author: ahocevar
Date: 2010-01-13 09:41:06 +0100 (Wed, 13 Jan 2010)
New Revision: 1734
Modified:
sandbox/ahocevar/playground/ux/Printing/examples/PrintMapPanel.js
Log:
close print dialog when ready.
Modified: sandbox/ahocevar/playground/ux/Printing/examples/PrintMapPanel.js
===================================================================
--- sandbox/ahocevar/playground/ux/Printing/examples/PrintMapPanel.js 2010-01-13 07:39:07 UTC (rev 1733)
+++ sandbox/ahocevar/playground/ux/Printing/examples/PrintMapPanel.js 2010-01-13 08:41:06 UTC (rev 1734)
@@ -41,6 +41,8 @@
var printWindow = new Ext.Window({
title: "Print",
modal: true,
+ border: false,
+ resizable: false,
width: 360,
items: new GeoExt.ux.PrintPreview({
printProvider: {
@@ -50,15 +52,16 @@
//method: "POST",
// capabilities from script tag in Printing.html.
- capabilities: printCapabilities
+ capabilities: printCapabilities,
+ listeners: {
+ "print": function() {printWindow.close();}
+ }
},
includeLegend: true,
mapTitle: "PrintMapPanel Demo",
bodyStyle: "padding:5px",
sourceMap: mapPanel,
legend: legendPanel
- }),
- border: false,
- resizable: false
+ })
}).show().center();
}
More information about the Commits
mailing list