From 7c33537bf451203190123efea84fc54888345179 Mon Sep 17 00:00:00 2001 From: ichuang Date: Sun, 3 Jun 2012 22:47:01 -0400 Subject: [PATCH] dogfood still has the codemirror + chrome bug; put in warning message for now --- lib/dogfood/check.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/dogfood/check.py b/lib/dogfood/check.py index 1dae5b1e08..53f11fc322 100644 --- a/lib/dogfood/check.py +++ b/lib/dogfood/check.py @@ -27,10 +27,15 @@ def check_problem_code(ans,the_lcp,correct_answers,false_answers): msg += '' % (settings.MITX_ROOT_URL,pfn) msg += '
' + endmsg = """

Note: if the code text box disappears after clicking on "Check", + please click on "Show Answer" to make it refresh properly. This is a + bug with Chrome; it does not happen with Firefox. It is being fixed. +

""" + is_ok = True if (not correct_answers) or (not false_answers): ret = {'ok':is_ok, - 'msg': msg, + 'msg': msg+endmsg, } return ret @@ -49,7 +54,7 @@ def check_problem_code(ans,the_lcp,correct_answers,false_answers): msg += "

%s

" % traceback.format_exc().replace('<','<') ret = {'ok':is_ok, - 'msg': msg, + 'msg': msg+endmsg, } return ret