Widget:WikidocBoardReview: Difference between revisions
Jump to navigation
Jump to search
Matt Pijoan (talk | contribs) No edit summary |
Matt Pijoan (talk | contribs) No edit summary |
||
Line 708: | Line 708: | ||
$("#submit").remove(); | $("#submit").remove(); | ||
event.data.examQuestions[event.data.currentQuestion].selectedAnswer = $("div .boxed").attr("id"); | event.data.examQuestions[event.data.currentQuestion].selectedAnswer = $("div .boxed").attr("id"); | ||
if (!event.data.examQuestions[event.data.currentQuestion]. | if (!event.data.examQuestions[event.data.currentQuestion].creditReceived && event.data.examQuestions[event.data.currentQuestion].selectedAnswer === event.data.examQuestions[event.data.currentQuestion].RightAnswer) { | ||
event.data.answeredRight += 1; | event.data.answeredRight += 1; | ||
event.data.examQuestions[event.data.currentQuestion]. | event.data.examQuestions[event.data.currentQuestion].creditReceived = true; | ||
} | } | ||
if (event.data.examType === "Tutor") { | if (event.data.examType === "Tutor") { |