From 376aaa1d8f6ec940985773afd838e4514493173d Mon Sep 17 00:00:00 2001 From: Felix Sun Date: Fri, 21 Jun 2013 15:38:32 -0400 Subject: [PATCH] Made correct/incorrect determination in coffeescript a little more sensitive. Still very hacky. --- .../xmodule/xmodule/js/src/crowdsource_hinter/display.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/lib/xmodule/xmodule/js/src/crowdsource_hinter/display.coffee b/common/lib/xmodule/xmodule/js/src/crowdsource_hinter/display.coffee index 912c98aaa7..a44bbf44f6 100644 --- a/common/lib/xmodule/xmodule/js/src/crowdsource_hinter/display.coffee +++ b/common/lib/xmodule/xmodule/js/src/crowdsource_hinter/display.coffee @@ -13,7 +13,8 @@ class @Hinter # request. answers = data[0] response = data[1] - if response.search(/class="correct "/) == -1 + console.debug(response) + if response.search(/class="correct/) == -1 # Incorrect. Get hints. $.postWithPrefix "#{@url}/get_hint", answers, (response) => @render(response.contents)