Variable name is misleading, use generic 'answer' instead

This commit is contained in:
kimth
2012-10-26 06:59:21 +00:00
parent 84aeb9dad3
commit 62840765a5

View File

@@ -216,9 +216,9 @@ class @Problem
for choice in value
@$("label[for='input_#{key}_#{choice}']").attr correct_answer: 'true'
else
detailed_solution = @$("#answer_#{key}, #solution_#{key}")
detailed_solution.html(value)
Collapsible.setCollapsibles(detailed_solution)
answer = @$("#answer_#{key}, #solution_#{key}")
answer.html(value)
Collapsible.setCollapsibles(answer)
# TODO remove the above once everything is extracted into its own
# inputtype functions.