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
parent 475ac62c79
commit ad40905a38

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)