Commit 73c12551 by ichuang Committed by Matthew Mongeau

problem.coffee : queue mathjax typesetting just once

parent 6572a542
...@@ -51,7 +51,6 @@ class @Problem ...@@ -51,7 +51,6 @@ class @Problem
@$("#answer_#{key}").html(value) # needs to be html, not text, for complex solutions (eg coding) @$("#answer_#{key}").html(value) # needs to be html, not text, for complex solutions (eg coding)
@$("#solution_#{key}").html(value) # needs to be html, not text, for complex solutions (eg coding) @$("#solution_#{key}").html(value) # needs to be html, not text, for complex solutions (eg coding)
MathJax.Hub.Queue ["Typeset", MathJax.Hub] MathJax.Hub.Queue ["Typeset", MathJax.Hub]
MathJax.Hub.Queue ["Typeset", MathJax.Hub]
@$('.show').val 'Hide Answer' @$('.show').val 'Hide Answer'
@element.addClass 'showed' @element.addClass 'showed'
else else
......
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