From 6f9c0a7d72f4d9c84b281d4e5baf946a863de23e Mon Sep 17 00:00:00 2001 From: Vik Paruchuri Date: Mon, 14 Jan 2013 17:47:44 -0500 Subject: [PATCH] Minor fix for when grade is ready to submit --- lms/static/coffee/src/staff_grading/staff_grading.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lms/static/coffee/src/staff_grading/staff_grading.coffee b/lms/static/coffee/src/staff_grading/staff_grading.coffee index 65cf85fd8d..5bbf72529e 100644 --- a/lms/static/coffee/src/staff_grading/staff_grading.coffee +++ b/lms/static/coffee/src/staff_grading/staff_grading.coffee @@ -234,7 +234,8 @@ class StaffGrading graded_callback: () => @grade = $("input[name='grade-selection']:checked").val() - + if score == undefined + return # check to see whether or not any categories have not been scored num_categories = $('table.rubric tr').length for i in [0..(num_categories-1)]