Index: lams_tool_assessment/web/pages/learning/learning.jsp =================================================================== diff -u -r8518d9067746b5286f01a9ed5679a8b60cff0e95 -r394f403c289f0fd7808c228840bead5c4e7d5d32 --- lams_tool_assessment/web/pages/learning/learning.jsp (.../learning.jsp) (revision 8518d9067746b5286f01a9ed5679a8b60cff0e95) +++ lams_tool_assessment/web/pages/learning/learning.jsp (.../learning.jsp) (revision 394f403c289f0fd7808c228840bead5c4e7d5d32) @@ -45,18 +45,18 @@ var questionIndex = $(this).data("question-index"); var selects = $("select[name^=question" + questionIndex + "_]"); - var grade = selects.length == 0 ? 0 : eval(selects.first().find('option:last-child').val()) + var maxMark = selects.length == 0 ? 0 : eval(selects.first().find('option:last-child').val()) var totalSelected = countHedgeQuestionSelectTotal(questionIndex); - var isButtonEnabled = (totalSelected == grade); + var isButtonEnabled = (totalSelected == maxMark); //check if hedging justification is enabled var justificationTextarea = $("#justification-question" + questionIndex); if( justificationTextarea.length) { isButtonEnabled = isButtonEnabled && $.trim(justificationTextarea.val()); } - //if totalSelected equals to question's grade - show button + //if totalSelected equals to question's maxMark - show button if (isButtonEnabled) { $("[type=button][name=submit-hedging-question" + questionIndex + "]").prop("disabled", "").removeClass("button-disabled"); } else { @@ -385,11 +385,11 @@ } } else { - var grade = ${question.grade}; + var maxMark = ${question.maxMark}; var totalSelected = countHedgeQuestionSelectTotal(questionIndex); - //if totalSelected not equals to question's grade OR textarea is empty or contains only white-space - show warning - if (totalSelected != grade) { + //if totalSelected not equals to question's maxMark OR textarea is empty or contains only white-space - show warning + if (totalSelected != maxMark) { markHedgingWrongTotalQuestions.push("${status.index}"); } if(${question.hedgingJustificationEnabled} && !$.trim($("#justification-question" + questionIndex).val())){