diff --git a/lms/static/coffee/src/staff_grading/staff_grading.coffee b/lms/static/coffee/src/staff_grading/staff_grading.coffee index aeb39993e8..3274f2048c 100644 --- a/lms/static/coffee/src/staff_grading/staff_grading.coffee +++ b/lms/static/coffee/src/staff_grading/staff_grading.coffee @@ -219,19 +219,24 @@ class StaffGrading setup_score_selection: => # first, get rid of all the old inputs, if any. - @grade_selection_container.html('Choose score: ') + @grade_selection_container.html(""" +
Choose an overall score for this submission.
+ """) # Now create new labels and inputs for each possible score. for score in [0..@max_score] id = 'score-' + score label = """""" input = """ - + """ # " fix broken parsing in emacs @grade_selection_container.append(input + label) + $('.grade-selection').click => @graded_callback() @score_selection_container.html(@rubric) $('.score-selection').click => @graded_callback() + graded_callback: () => @grade = $("input[name='grade-selection']:checked").val() if @grade == undefined