Commit 9d49a0e8 by Julian Arni

Fix check for waitfor attr

parent 1e0702f3
...@@ -142,7 +142,7 @@ class @Problem ...@@ -142,7 +142,7 @@ class @Problem
# off @answers # off @answers
check_waitfor: => check_waitfor: =>
for inp in @inputs for inp in @inputs
if not ($(inp).attr("data-waitfor")?) if ($(inp).attr("waitfor")?)
try try
$(inp).data("waitfor")() $(inp).data("waitfor")()
catch e catch e
......
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