diff options
author | Cheng-Han, Wu | 2016-02-24 10:35:52 +0800 |
---|---|---|
committer | Cheng-Han, Wu | 2016-02-24 10:35:52 +0800 |
commit | daf4c9dcae1606bb1554f6d3f42fbf5c2cc599fc (patch) | |
tree | 96041c9fd9fd9a84c56011ea5b4dc444fad90acf /public | |
parent | 1da0b87714e725dcd540f389b118c581fd93ccb7 (diff) |
Fixed mathjax might parse not specified elements and now pass array of elements
Diffstat (limited to '')
-rw-r--r-- | public/js/extra.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/public/js/extra.js b/public/js/extra.js index ce00d0e3..200a4652 100644 --- a/public/js/extra.js +++ b/public/js/extra.js @@ -208,10 +208,8 @@ function finishView(view) { //mathjax var mathjaxdivs = view.find('.mathjax.raw').removeClass("raw").toArray(); try { - for (var i = 0; i < mathjaxdivs.length; i++) { - MathJax.Hub.Queue(["Typeset", MathJax.Hub, mathjaxdivs[i].innerHTML]); - MathJax.Hub.Queue(viewAjaxCallback); - } + MathJax.Hub.Queue(["Typeset", MathJax.Hub, mathjaxdivs]); + MathJax.Hub.Queue(viewAjaxCallback); } catch (err) {} //sequence diagram var sequences = view.find(".sequence-diagram.raw").removeClass("raw"); |