Index: lams_tool_scratchie/web/pages/learning/learning.jsp =================================================================== diff -u -r8d982bb83bb4040e0eba0076df8ab05ff715f2e9 -r02ce40b60524aa33d326fbda824dcd43f566ab94 --- lams_tool_scratchie/web/pages/learning/learning.jsp (.../learning.jsp) (revision 8d982bb83bb4040e0eba0076df8ab05ff715f2e9) +++ lams_tool_scratchie/web/pages/learning/learning.jsp (.../learning.jsp) (revision 02ce40b60524aa33d326fbda824dcd43f566ab94) @@ -312,23 +312,22 @@ //autosave feature var autosaveInterval = "60000"; // 60 seconds interval - window.setInterval( - function(){ - if (isWaitingForConfirmation) return; - - //ajax form submit - $('#burning-questions').ajaxSubmit({ - url: "learning/autosaveBurningQuestions.do?sessionMapID=${sessionMapID}&date=" + new Date().getTime(), - success: function() { - $.jGrowl( - " ", - { life: 2000, closeTemplate: '' } - ); - } - }); - }, - autosaveInterval - ); + window.setInterval(learnerAutosave, autosaveInterval); + + function learnerAutosave(){ + if (isWaitingForConfirmation) return; + + //ajax form submit + $('#burning-questions').ajaxSubmit({ + url: "learning/autosaveBurningQuestions.do?sessionMapID=${sessionMapID}&date=" + new Date().getTime(), + success: function() { + $.jGrowl( + " ", + { life: 2000, closeTemplate: '' } + ); + } + }); + } function finish(isTimelimitExpired) {