Commit 4c1c3c59 by ichuang

Merge pull request #975 from MITx/kimth/expand-in-solutions

Permit collapsibles in capa detailed solution
parents 5f3b59f3 d587b349
...@@ -216,7 +216,9 @@ class @Problem ...@@ -216,7 +216,9 @@ class @Problem
for choice in value for choice in value
@$("label[for='input_#{key}_#{choice}']").attr correct_answer: 'true' @$("label[for='input_#{key}_#{choice}']").attr correct_answer: 'true'
else else
@$("#answer_#{key}, #solution_#{key}").html(value) answer = @$("#answer_#{key}, #solution_#{key}")
answer.html(value)
Collapsible.setCollapsibles(answer)
# TODO remove the above once everything is extracted into its own # TODO remove the above once everything is extracted into its own
# inputtype functions. # inputtype functions.
......
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