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
# 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)
......
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