summaryrefslogtreecommitdiff
path: root/yaksh/static
diff options
context:
space:
mode:
authorPalaparthy Adityachandra2020-08-27 17:37:59 +0530
committerGitHub2020-08-27 17:37:59 +0530
commit2fbc43b83fd1a487d4e27b471efa2faeed5c4669 (patch)
tree500472264e312f7c39ce46b80272cac9f58db2e7 /yaksh/static
parent632b906a8f0bf038b61783588fcd4423a6df8a09 (diff)
parentde9ac5e647622f0e9908bf830a4a962306d350a1 (diff)
downloadonline_test-2fbc43b83fd1a487d4e27b471efa2faeed5c4669.tar.gz
online_test-2fbc43b83fd1a487d4e27b471efa2faeed5c4669.tar.bz2
online_test-2fbc43b83fd1a487d4e27b471efa2faeed5c4669.zip
Merge pull request #746 from adityacp/add_mathjax_lessonv0.22.0
Add mathjax support in lesson and module
Diffstat (limited to 'yaksh/static')
-rw-r--r--yaksh/static/yaksh/js/lesson.js9
1 files changed, 3 insertions, 6 deletions
diff --git a/yaksh/static/yaksh/js/lesson.js b/yaksh/static/yaksh/js/lesson.js
index 55d4846..6eaf6c6 100644
--- a/yaksh/static/yaksh/js/lesson.js
+++ b/yaksh/static/yaksh/js/lesson.js
@@ -32,13 +32,10 @@ $(document).ready(function(){
});
});
- function preview_text(data){
- var preview_div = $("#preview_text_div");
- if (!preview_div.is(":visible")){
- $("#preview_text_div").toggle();
- }
+ function preview_text(data) {
$("#description_body").empty();
- $("#description_body").append(data);
+ $("#description_body").html(data);
+ MathJax.Hub.Queue(["Typeset",MathJax.Hub]);
}
$("#embed").click(function() {