lib/softcover/server/views/main.js.erb in softcover-1.0.5 vs lib/softcover/server/views/main.js.erb in softcover-1.1.beta1
- old
+ new
@@ -20,9 +20,10 @@
initMathJax = ->
$('#mathJaxJS').remove()
delete MathJax
chapter_number = $('.chapter').attr('data-number')
+
script = document.createElement( 'script' )
script.id = 'mathJaxJS'
script.type = 'text/javascript'
script.src = '<%= @mathjax_src %>'
script.innerHTML = """