mirror of
https://github.com/projekteuler/projekteuler.git
synced 2026-01-27 10:38:50 +01:00
Make CodeMirror and MathJax work with turbolinks
This commit is contained in:
@@ -13,8 +13,8 @@ loadCodeMirror = ->
|
||||
mode: "text/html"
|
||||
})
|
||||
|
||||
$(document).ready loadCodeMirror
|
||||
$(document).on "page:load", loadCodeMirror
|
||||
$(document).on "turbolinks:load", loadCodeMirror
|
||||
|
||||
|
||||
$(document).on "click", '#translationNav a[href="#preview"]', ->
|
||||
$('#preview .problem-content').html(cm.getValue())
|
||||
Reference in New Issue
Block a user