Commit fd3a1532 by Xavier Antoviaque

Merge pull request #52 from mtyaka/assessment-patch

Keep submit button disabled after answering in assessment.
parents 6337be4a a8051fb1
...@@ -112,8 +112,13 @@ function MentoringAssessmentView(runtime, element, mentoring) { ...@@ -112,8 +112,13 @@ function MentoringAssessmentView(runtime, element, mentoring) {
} }
function onChange() { function onChange() {
// Assessment mode does not allow to modify answers.
// Once an answer has been submitted (next button is enabled),
// start ignoring changes to the answer.
if (nextDOM.attr('disabled')) {
validateXBlock(); validateXBlock();
} }
}
function handleSubmitResults(result) { function handleSubmitResults(result) {
$('.grade', element).data('score', result.score); $('.grade', element).data('score', result.score);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment