[Commits] r2224 - core/trunk/geoext/lib/GeoExt/data
commits at geoext.org
commits at geoext.org
Tue Jun 22 12:49:14 CEST 2010
Author: ahocevar
Date: 2010-06-22 12:49:14 +0200 (Tue, 22 Jun 2010)
New Revision: 2224
Modified:
core/trunk/geoext/lib/GeoExt/data/PrintProvider.js
Log:
add baseParams config option to PrintProvider for customized http calls. p=aabt, r=me (closes #290)
Modified: core/trunk/geoext/lib/GeoExt/data/PrintProvider.js
===================================================================
--- core/trunk/geoext/lib/GeoExt/data/PrintProvider.js 2010-06-16 19:13:58 UTC (rev 2223)
+++ core/trunk/geoext/lib/GeoExt/data/PrintProvider.js 2010-06-22 10:49:14 UTC (rev 2224)
@@ -112,6 +112,11 @@
*/
customParams: null,
+ /** api: config[baseParams]
+ * ``Object`` Key-value pairs of base params to be add to every
+ * request to the service. Optional.
+ */
+
/** api: property[scales]
* ``Ext.data.JsonStore`` read-only. A store representing the scales
* available.
@@ -423,7 +428,7 @@
// content tab with the pdf
window.open(url);
} else {
- // This avoids popup blockers for all other browers
+ // This avoids popup blockers for all other browsers
window.location.href = url;
}
this.fireEvent("print", this, url);
@@ -431,6 +436,7 @@
failure: function(response) {
this.fireEvent("printexception", this, response);
},
+ params: this.initialConfig.baseParams,
scope: this
});
}
@@ -447,6 +453,7 @@
this.capabilities = Ext.decode(response.responseText);
this.loadStores();
},
+ params: this.initialConfig.baseParams,
scope: this
});
},
More information about the Commits
mailing list