Commit 7a1b0fdf by solashirai

working on fixing problem_check and parse_xml

parent 30a18610
......@@ -385,7 +385,7 @@ class CrowdsourceHinter(XBlock):
"""
<verticaldemo>
<crowdsourcehinter>
{"initial_hint_answer": "michigann", "initial_hint_text": "you have an extra n", "generic_hint": "make sure to chekc your spelling"}
{"initial_hint_answer": "michigann", "initial_hint_text": "you have an extra n", "generic_hint": "make sure to check your spelling"}
</crowdsourcehinter>
</verticaldemo>
"""
......@@ -398,5 +398,6 @@ class CrowdsourceHinter(XBlock):
A minimal working test for parse_xml
"""
block = runtime.construct_xblock_from_class(cls, keys)
#import pdb; pdb.set_trace()
#from IPython import embed
#embed()
return block
......@@ -24,6 +24,7 @@ function CrowdsourceHinter(runtime, element){
//directly passing data to onStudentSubmission does not appear to work
function get_event_data(event_type, data, element){
onStudentSubmission(data);
console.log(data);
}
Logger.listen('problem_check', null, get_event_data);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment