From be3d8cbb861fd14cc6ba2edd123f100b34079ffe Mon Sep 17 00:00:00 2001 From: Vik Paruchuri Date: Mon, 14 Jan 2013 18:00:53 -0500 Subject: [PATCH] Fix small issue with graded callback --- lms/static/coffee/src/staff_grading/staff_grading.coffee | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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(""" +

Overall Score

+

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