Index: lams_tool_scratchie/web/pages/learning/learning.jsp =================================================================== diff -u -r6ade8791af29bde5c1e1b1aad674a9d23b69fb36 -r9465560dcbea622e2f3a01e334400f2005ce2ed3 --- lams_tool_scratchie/web/pages/learning/learning.jsp (.../learning.jsp) (revision 6ade8791af29bde5c1e1b1aad674a9d23b69fb36) +++ lams_tool_scratchie/web/pages/learning/learning.jsp (.../learning.jsp) (revision 9465560dcbea622e2f3a01e334400f2005ce2ed3) @@ -1,5 +1,4 @@ - + <%@ include file="/common/taglibs.jsp"%> <%-- param has higher level for request attribute --%> @@ -33,7 +32,7 @@ $.ajax({ async: false, url: '', - data: 'sessionMapID=${sessionMapID}&mode=${mode}&toolSessionID=${toolSessionID}&answerUid=' + answerUid, + data: 'sessionMapID=${sessionMapID}&answerUid=' + answerUid, dataType: 'json', type: 'post', success: function (json) { @@ -57,13 +56,18 @@ }); } - function finishSession(){ + function finish(isShowResultsPage){ var numberOfAvailableScratches = $("[id^=imageLink-][onclick]").length; var finishConfirmed = (numberOfAvailableScratches > 0) ? confirm("") : true; if (finishConfirmed) { document.getElementById("finishButton").disabled = true; - document.location.href =''; + if (isShowResultsPage) { + document.location.href =''; + } else { + document.location.href =''; + } + return false; } } @@ -87,42 +91,42 @@ <%@ include file="/common/messages.jsp"%> - ${item.title} - ${item.description} - - - - - - - - - - - - - - - - - - - - - - + ${item.title} + ${item.description} + + + + + + + + + + + + + + + + + + + + + + + + + ${answer.description} + + + + - - ${answer.description} - - - - - - + ${sessionMap.reflectInstructions} @@ -153,15 +157,25 @@ - + - - - + + + + + + + + + + + + +