Skip to content
Snippets Groups Projects
Commit 84aeb9da authored by kimth's avatar kimth
Browse files

Permit collapsibles in capa detailed solution

parent b23a4733
No related branches found
No related tags found
No related merge requests found
......@@ -216,7 +216,9 @@ class @Problem
for choice in value
@$("label[for='input_#{key}_#{choice}']").attr correct_answer: 'true'
else
@$("#answer_#{key}, #solution_#{key}").html(value)
detailed_solution = @$("#answer_#{key}, #solution_#{key}")
detailed_solution.html(value)
Collapsible.setCollapsibles(detailed_solution)
# TODO remove the above once everything is extracted into its own
# inputtype functions.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment