Rerun MathJax when previewing a translation

This commit is contained in:
pfischbeck committed 2017-11-28 11:43:29 +01:00
1 parent 913d9ec0b7
commit 3bfc2a7406
1 file changed
+2 -1
@@ -17,4 +17,5 @@ $(document).on "turbolinks:load", loadCodeMirror
$(document).on "click", '#translationNav a[href="#preview"]', -> $(document).on "click", '#translationNav a[href="#preview"]', ->
$('#preview .problem-content').html(cm.getValue()) $('#preview .problem-content').html(cm.getValue())
MathJax.Hub.Queue(["Typeset",MathJax.Hub]);