Commit b2d0b9b6 by Reda Lemeden

Merge with Head

parents 01ab182a c94d6868
../data/problems/Lab2A.html
\ No newline at end of file
../data/custom_tags
\ No newline at end of file
...@@ -13,11 +13,15 @@ function ${ id }_load() { ...@@ -13,11 +13,15 @@ function ${ id }_load() {
postJSON('/modx/problem/${ id }/problem_check', postJSON('/modx/problem/${ id }/problem_check',
submit_data, submit_data,
function(json) { function(json) {
switch(json.success) {
if(json['success'] == 'syntax') case 'incorrect': // Worked, but answer not
alert('Syntax error'); case 'correct':
else ${ id }_load();
${ id }_load(); //alert("!!"+json.success);
break;
default:
alert(json.success);
}
}); });
log_event('problem_check', submit_data); log_event('problem_check', submit_data);
}); });
......
../data/problems/schematic_tutorial.html
\ No newline at end of file
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