[Commits] r2324 - core/trunk/geoext/examples

commits at geoext.org commits at geoext.org
Fri Sep 10 15:14:02 CEST 2010


Author: ahocevar
Date: 2010-09-10 15:14:02 +0200 (Fri, 10 Sep 2010)
New Revision: 2324

Modified:
   core/trunk/geoext/examples/print-form.js
Log:
fixed configuration (closes #325)


Modified: core/trunk/geoext/examples/print-form.js
===================================================================
--- core/trunk/geoext/examples/print-form.js	2010-09-10 13:00:45 UTC (rev 2323)
+++ core/trunk/geoext/examples/print-form.js	2010-09-10 13:14:02 UTC (rev 2324)
@@ -18,15 +18,15 @@
     // The printProvider that connects us to the print service
     var printProvider = new GeoExt.data.PrintProvider({
         method: "GET", // "POST" recommended for production use
-        capabilities: printCapabilities // from the info.json script in the html
+        capabilities: printCapabilities, // from the info.json script in the html
+        customParams: {
+            mapTitle: "Printing Demo"
+        }
     });
     // Our print page. Stores scale, center and rotation and gives us a page
     // extent feature that we can add to a layer.
     printPage = new GeoExt.data.PrintPage({
-        printProvider: printProvider,
-        customParams: {
-            mapTitle: "Printing Demo"
-        }
+        printProvider: printProvider
     });
     // A layer to display the print page extent
     var pageLayer = new OpenLayers.Layer.Vector();



More information about the Commits mailing list