Index: lams_tool_larsrc/web/pages/itemreview/instructionsnav.jsp
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_larsrc/web/pages/itemreview/instructionsnav.jsp,v
diff -u -r1.3 -r1.4
--- lams_tool_larsrc/web/pages/itemreview/instructionsnav.jsp 26 Apr 2006 02:53:26 -0000 1.3
+++ lams_tool_larsrc/web/pages/itemreview/instructionsnav.jsp 27 Apr 2006 02:37:45 -0000 1.4
@@ -12,9 +12,20 @@
function finish()
{
- window.parent.opener.location.href='urlcontent.do?method=setContentDone&sessionId=27534&urlId=7365&mode=resume&actor=learner';
- window.parent.opener=null;
- window.parent.close();
+ if(${mode.learner}){
+ var reqIDVar = new Date();
+ //if auto run mode, the opener will be null
+ if(window.parent.opener != null)
+ window.parent.opener.parent.frames['learningFrame'].location.href="?itemUid=${itemUid}&reqID="+reqIDVar.getTime();
+ else{
+ //set complete flag and finish this activity as well.
+ window.parent.opener.parent.frames['learningFrame'].location.href='';
+ }
+ }
+ if(window.parent.opener != null) {
+ window.parent.opener=null;
+ window.parent.close();
+ }
}
function finishIns(){