Commit 2522a0f2 by Stephen Sanchez

Fixing a few JS mismatches

parent 91fac771
...@@ -162,6 +162,7 @@ OpenAssessment.BaseUI.prototype = { ...@@ -162,6 +162,7 @@ OpenAssessment.BaseUI.prototype = {
this.server.submit(submission).done( this.server.submit(submission).done(
// When we have successfully sent the submission, expand the next step // When we have successfully sent the submission, expand the next step
function(studentId, attemptNum) { function(studentId, attemptNum) {
ui.renderSubmissionStep();
ui.renderPeerAssessmentStep(true); ui.renderPeerAssessmentStep(true);
} }
).fail(function(errMsg) { ).fail(function(errMsg) {
...@@ -182,13 +183,14 @@ OpenAssessment.BaseUI.prototype = { ...@@ -182,13 +183,14 @@ OpenAssessment.BaseUI.prototype = {
optionsSelected[sel.name] = sel.value; optionsSelected[sel.name] = sel.value;
} }
); );
var feedback = $('#assessment__rubric__question--004__value', this.element).val(); var feedback = $('#assessment__rubric__question--feedback__value', this.element).val();
// Send the assessment to the server // Send the assessment to the server
var ui = this; var ui = this;
this.server.assess(submissionId, optionsSelected, feedback).done( this.server.assess(submissionId, optionsSelected, feedback).done(
function() { function() {
// When we have successfully sent the assessment, expand the next step // When we have successfully sent the assessment, expand the next step
ui.renderPeerAssessmentStep(true);
ui.renderSelfAssessmentStep(true); ui.renderSelfAssessmentStep(true);
ui.renderGradeStep(true); ui.renderGradeStep(true);
} }
......
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