[fusion-commits] r1480 - trunk/lib
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Tue Aug 26 11:00:21 EDT 2008
Author: zjames
Date: 2008-08-26 11:00:21 -0400 (Tue, 26 Aug 2008)
New Revision: 1480
Modified:
trunk/lib/ApplicationDefinition.js
Log:
closes #144: request application definition in json format
Modified: trunk/lib/ApplicationDefinition.js
===================================================================
--- trunk/lib/ApplicationDefinition.js 2008-08-22 20:54:55 UTC (rev 1479)
+++ trunk/lib/ApplicationDefinition.js 2008-08-26 15:00:21 UTC (rev 1480)
@@ -123,7 +123,6 @@
OpenLayers.Function.bind(this.getAppDefCB, this));
}
} else {
- //TODO: request as JSON format
if (!this.sessionId) {
var r = new Fusion.Lib.MGRequest.MGCreateSession();
this.oBroker.dispatchRequest(r, OpenLayers.Function.bind(this.getAppDef, this));
@@ -141,9 +140,9 @@
}
var r = new Fusion.Lib.MGRequest.MGGetResourceContent(this.applicationDefinition);
r.parameters.session = this.sessionId;
+ r.parameters.format = 'application/json';
this.oBroker.dispatchRequest(r,
- OpenLayers.Function.bind(Fusion.xml2json, this,
- OpenLayers.Function.bind(this.getAppDefCB, this)));
+ OpenLayers.Function.bind(this.getAppDefCB, this));
},
getAppDefCB: function(xhr) {
More information about the fusion-commits
mailing list