From 382d4d70eae751e15da3feb4c7727b02ee2e819e Mon Sep 17 00:00:00 2001 From: Vik Paruchuri Date: Wed, 13 Feb 2013 11:35:43 -0500 Subject: [PATCH] Minor parsing fix, remove b tag from selectors --- common/lib/xmodule/xmodule/combined_open_ended_rubric.py | 2 +- .../xmodule/xmodule/js/src/combinedopenended/display.coffee | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common/lib/xmodule/xmodule/combined_open_ended_rubric.py b/common/lib/xmodule/xmodule/combined_open_ended_rubric.py index 817d0293e7..fa7f83ec69 100644 --- a/common/lib/xmodule/xmodule/combined_open_ended_rubric.py +++ b/common/lib/xmodule/xmodule/combined_open_ended_rubric.py @@ -50,7 +50,7 @@ class CombinedOpenEndedRubric(object): success = False try: rubric_categories = self.extract_categories(rubric_xml) - if score_list: + if score_list and len(score_list)==len(rubric_categories): for i in xrange(0,len(rubric_categories)): category = rubric_categories[i] for j in xrange(0,len(category['options'])): diff --git a/common/lib/xmodule/xmodule/js/src/combinedopenended/display.coffee b/common/lib/xmodule/xmodule/js/src/combinedopenended/display.coffee index 052d005152..fd0391450b 100644 --- a/common/lib/xmodule/xmodule/js/src/combinedopenended/display.coffee +++ b/common/lib/xmodule/xmodule/js/src/combinedopenended/display.coffee @@ -4,7 +4,7 @@ class @Rubric # finds the scores for each rubric category @get_score_list: () => # find the number of categories: - num_categories = $('span.rubric-category').length + num_categories = $('.rubric-category').length score_lst = [] # get the score for each one @@ -23,7 +23,7 @@ class @Rubric @check_complete: () -> # check to see whether or not any categories have not been scored - num_categories = $('span.rubric-category').length + num_categories = $('.rubric-category').length for i in [0..(num_categories-1)] score = $("input[name='score-selection-#{i}']:checked").val() if score == undefined