Made correct/incorrect determination in coffeescript a little more sensitive. Still very hacky.
This commit is contained in:
committed by
Carlos Andrés Rocha
parent
93d457de54
commit
376aaa1d8f
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user