Index: lams_tool_mindmap/web/common/mapjs.jsp
===================================================================
diff -u -r8ee5ee8207403f72c9857580439a36ffbbf54190 -r8969536d397a74ec1c26188bdd4b207dc605c569
--- lams_tool_mindmap/web/common/mapjs.jsp (.../mapjs.jsp) (revision 8ee5ee8207403f72c9857580439a36ffbbf54190)
+++ lams_tool_mindmap/web/common/mapjs.jsp (.../mapjs.jsp) (revision 8969536d397a74ec1c26188bdd4b207dc605c569)
@@ -51,27 +51,27 @@
sessionId: "${sessionId}", mode: "${mode}" } ,
dataType: "json",
success: function (response) {
- initialActionId = response.lastActionId;
+ initialActionId = response.lastActionId;
lastActionId = initialActionId;
var idea = content(response.mindmap);
window.mapModel.setLabelGenerator(labelGenerator, "CreatorNameLabels");
-
+
window.mapModel.setIdea(idea);
window.mapModel.setEditingEnabled(false);
-
+
idea.addEventListener('changed', onIdeaChangedLAMS);
contentAggregate = window.mapModel.getIdea();
-
-
- <%-- Websockets used to get the node updates from the server --%>
- <%-- init the connection with server using server URL but with different protocol --%>
- initWebsocket('mindmapNodes${sessionId}',
+
+
+ <%-- Websockets used to get the node updates from the server --%>
+ <%-- init the connection with server using server URL but with different protocol --%>
+ initWebsocket('mindmapNodes${sessionId}',
''.replace('http', 'ws')
+ 'learningWebsocket?toolSessionID=${sessionId}&lastActionId=' + initialActionId,
function (e) {
@@ -126,10 +126,10 @@
if ( valuesChanged ) {
window.mapModel.rebuildRequired();
}
- // reset ping timer
- websocketPing('mindmapNodes${sessionId}', true);
- });
-
+ // reset ping timer
+ websocketPing('mindmapNodes${sessionId}', true);
+ }
+ );
},
error: function (response) {