Fix case where LaTeX preview could not be turned off.

This commit is contained in:
ccd0 2015-10-23 19:04:33 -07:00
parent 8f95476529
commit c8507e2e92

View File

@ -187,6 +187,7 @@ QR =
QR.nodes.el.classList.toggle 'sjis-preview', Conf['sjisPreview']
texPreviewShow: ->
return QR.texPreviewHide() if $.hasClass QR.nodes.el, 'tex-preview'
$.addClass QR.nodes.el, 'tex-preview'
QR.nodes.texPreview.textContent = QR.nodes.com.value
$.event 'mathjax', null, QR.nodes.texPreview