From b8a3fc04ca10888b556f83b7202912ef167b046f Mon Sep 17 00:00:00 2001 From: ichuang Date: Tue, 29 May 2012 23:23:22 -0400 Subject: [PATCH] partial attempt to fix codemirror js chrome bug, with patch to problem.js (commented out) --- templates/problem.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/templates/problem.js b/templates/problem.js index 80924a79a6..f0797692de 100644 --- a/templates/problem.js +++ b/templates/problem.js @@ -5,6 +5,11 @@ function ${ id }_content_updated() { $('#check_${ id }').unbind('click').click(function() { $("input.schematic").each(function(index,element){ element.schematic.update_value(); }); $(".CodeMirror").each(function(index,element){ if (element.CodeMirror.save) element.CodeMirror.save(); }); + +// for (var key in codemirror_set) { +// codemirror_set[key].refresh(); +// } + var submit_data={}; $.each($("[id^=input_${ id }_]"), function(index,value){ if (value.type==="checkbox"){