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,7 +112,12 @@ function MentoringAssessmentView(runtime, element, mentoring) {
}
function onChange() {
validateXBlock();
// 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();
}
}
function handleSubmitResults(result) {
......
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