Skip to content

Commit

Permalink
update student select menu when rubric is used to grade
Browse files Browse the repository at this point in the history
Updates the select menu when a rubric is used to grade.

fixes GRADE-349

test plan:
 - Have a course with a teacher and some students
 - Have an assignment that has a rubric configured
 - Go into speedgrader as a teacher
 - Grade a student using the rubric
 - Note that the status icon in the student menu reflects the graded
   status.

Change-Id: I49abfd6f6baf9d1f6a44d12737b01b5c1573e250
Reviewed-on: https://gerrit.instructure.com/129405
Reviewed-by: Spencer Olson <[email protected]>
Reviewed-by: Derek Bender <[email protected]>
Tested-by: Jenkins
QA-Review: Anju Reddy <[email protected]>
Product-Review: Keith T. Garner <[email protected]>
  • Loading branch information
ktgeek authored and maneframe committed Oct 16, 2017
1 parent e5c3118 commit 8f6c871
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions public/javascripts/speed_grader.js
Original file line number Diff line number Diff line change
Expand Up @@ -802,6 +802,7 @@ function initRubricStuff(){
// submissionAndAssessment comes back with :include_root => true, so we have to get rid of the root
var student = EG.setOrUpdateSubmission(response.artifact);
student.rubric_assessments = $.map(submissionAndAssessment.rubric_assessments, function(ra){return ra.rubric_assessment;});
EG.updateSelectMenuStatus(student);
});

$(".rubric_summary").loadingImage('remove');
Expand Down

0 comments on commit 8f6c871

Please sign in to comment.