problem.js: change "show answer" to put result in .html instead of .text (OK everyone?)
also some changes to try to fix the codemirror problem
This commit is contained in:
@@ -2,6 +2,7 @@ function ${ id }_content_updated() {
|
||||
MathJax.Hub.Queue(["Typeset",MathJax.Hub]);
|
||||
update_schematics();
|
||||
|
||||
|
||||
// dynamic math display: generate MathML on click
|
||||
$.each($("[id^=display_${ id }_]"), function(index,value){
|
||||
theid = value.id.replace("display_",""); // ID of the response
|
||||
@@ -93,7 +94,8 @@ function ${ id }_content_updated() {
|
||||
$("label[for="+choice_id+"]").attr("correct_answer", "true");
|
||||
}
|
||||
}
|
||||
$("#answer_"+key).text(data[key]);
|
||||
// $("#answer_"+key).text(data[key]);
|
||||
$("#answer_"+key).html(data[key]);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user