[fusion-commits] r1980 - sandbox/jxlib-3.0/lib
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Tue Nov 17 11:21:32 EST 2009
Author: pagameba
Date: 2009-11-17 11:21:30 -0500 (Tue, 17 Nov 2009)
New Revision: 1980
Modified:
sandbox/jxlib-3.0/lib/fusion.js
Log:
change test on app def url slightly
Modified: sandbox/jxlib-3.0/lib/fusion.js
===================================================================
--- sandbox/jxlib-3.0/lib/fusion.js 2009-11-17 16:12:34 UTC (rev 1979)
+++ sandbox/jxlib-3.0/lib/fusion.js 2009-11-17 16:21:30 UTC (rev 1980)
@@ -1214,9 +1214,11 @@
Fusion.sessionId = o.sessionId;
}
- createSessionId();
var appDefUrl = Fusion.getQueryParam('ApplicationDefinition');
- if(appDefUrl){
+ if(appDefUrl &&
+ (appDefUrl.indexOf('Library://') == 0 ||
+ appDefUrl.indexOf('Session://') == 0)){
+ createSessionId();
var xhr = new getXmlHttpRequest();
var mapAgentUrl = getAgentUrl();
xhr.open("GET", mapAgentUrl + "?OPERATION=GETRESOURCECONTENT&VERSION=1.0.0&LOCALE=en&CLIENTAGENT=MapGuide+Developer&RESOURCEID=" + appDefUrl + "&FORMAT=text%2Fxml&SESSION="+ Fusion.sessionId, false);
More information about the fusion-commits
mailing list