[fusion-commits] r3060 - trunk/lib
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Mon Apr 3 05:49:53 PDT 2023
Author: jng
Date: 2023-04-03 05:49:53 -0700 (Mon, 03 Apr 2023)
New Revision: 3060
Modified:
trunk/lib/fusion.js
Log:
Fix undefined mapAgentUrl in getSiteVersion
Modified: trunk/lib/fusion.js
===================================================================
--- trunk/lib/fusion.js 2023-04-03 12:49:14 UTC (rev 3059)
+++ trunk/lib/fusion.js 2023-04-03 12:49:53 UTC (rev 3060)
@@ -413,7 +413,7 @@
if (passedSessionId == null || passedSessionId == "" ){
createSessionId(Fusion.getQueryParam("Username"), Fusion.getQueryParam("Password"), cb);
} else {
- getSiteVersion(passedSessionId, function(version) {
+ getSiteVersion(mapAgentUrl, passedSessionId, function(version) {
Fusion.sessionId = passedSessionId;
Fusion.siteVersion = version;
cb();
@@ -1705,7 +1705,7 @@
xhr.send(null);
};
- var getSiteVersion = function(sessionId, callback) {
+ var getSiteVersion = function(mapAgentUrl, sessionId, callback) {
var xhr = getXmlHttpRequest();
xhr.open("GET", mapAgentUrl + "?OPERATION=GETSITEVERSION&VERSION=1.0.0&LOCALE=en&CLIENTAGENT=MapGuide+Developer&SESSION="+ sessionId, true);
xhr.onload = function (e) {
More information about the fusion-commits
mailing list