Index: lams_tool_assessment/web/pages/learning/learning.jsp =================================================================== diff -u -r21aea119939539ce08a947354f84cb7dc6980d38 -r0b1d534ce1915b907afff0171909f90226b31921 --- lams_tool_assessment/web/pages/learning/learning.jsp (.../learning.jsp) (revision 21aea119939539ce08a947354f84cb7dc6980d38) +++ lams_tool_assessment/web/pages/learning/learning.jsp (.../learning.jsp) (revision 0b1d534ce1915b907afff0171909f90226b31921) @@ -268,13 +268,14 @@ //autosave feature - var autosaveInterval = ${isLeadershipEnabled and isUserLeader ? 10000 : 30000}; // 30 or 10 seconds interval + var autosaveInterval = ${isLeadershipEnabled and isUserLeader ? 10000 : 30000}, // 30 or 10 seconds interval + autosaveWindowId = new Date().getTime(); // all we need for this ID is to be unique function learnerAutosave(isCommand){ // isCommand means that the autosave was triggered by force complete or another command websocket message // in this case do not check multiple tabs open, just autosave if (!isCommand) { - let shouldAutosave = preventLearnerAutosaveFromMultipleTabs(autosaveInterval); + let shouldAutosave = preventLearnerAutosaveFromMultipleTabs(autosaveWindowId, autosaveInterval); if (!shouldAutosave) { return; } @@ -348,9 +349,9 @@ // validate only if time limit is not expired // otherwise confirm with learner that he wants to submit if (!isTimelimitExpired && (!validateAnswers() - || (!isResubmitAllowed && - !confirm("")))) { - return; + || (!isResubmitAllowed && + !confirm("")))) { + return; } disableButtons(); @@ -617,9 +618,9 @@
- +
-
+
<%@ include file="parts/paging.jsp"%> @@ -638,4 +639,4 @@ - + \ No newline at end of file