Index: lams_tool_assessment/web/pages/learning/learning.jsp =================================================================== diff -u -r292df3a6fb3cce2b31c9d9ee33c61bbe931e58ab -r30b838c2ace64169f440c86a9756fd0959cf2323 --- lams_tool_assessment/web/pages/learning/learning.jsp (.../learning.jsp) (revision 292df3a6fb3cce2b31c9d9ee33c61bbe931e58ab) +++ lams_tool_assessment/web/pages/learning/learning.jsp (.../learning.jsp) (revision 30b838c2ace64169f440c86a9756fd0959cf2323) @@ -125,6 +125,17 @@ etherpadInitMethods[groupId](); } }); + + <%-- Connect to command websocket only if it is learner UI --%> + + // command websocket stuff for refreshing + // trigger is an unique ID of page and action that command websocket code in Page.tag recognises + commandWebsocketHookTrigger = 'assessment-leader-change-refresh-${toolSessionID}'; + // if the trigger is recognised, the following action occurs + commandWebsocketHook = function() { + location.reload(); + }; + }); function countHedgeQuestionSelectTotal(questionIndex) {