Commit 376aaa1d by Felix Sun Committed by Carlos Andrés Rocha

Made correct/incorrect determination in coffeescript a little more sensitive. Still very hacky.

parent 93d457de
...@@ -13,7 +13,8 @@ class @Hinter ...@@ -13,7 +13,8 @@ class @Hinter
# request. # request.
answers = data[0] answers = data[0]
response = data[1] response = data[1]
if response.search(/class="correct "/) == -1 console.debug(response)
if response.search(/class="correct/) == -1
# Incorrect. Get hints. # Incorrect. Get hints.
$.postWithPrefix "#{@url}/get_hint", answers, (response) => $.postWithPrefix "#{@url}/get_hint", answers, (response) =>
@render(response.contents) @render(response.contents)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment