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

This commit is contained in:
Felix Sun
2013-06-21 15:38:32 -04:00
committed by Carlos Andrés Rocha
parent 93d457de54
commit 376aaa1d8f

View File

@@ -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)