Merge with Head

This commit is contained in:
Reda Lemeden
2012-02-20 14:29:26 -05:00
4 changed files with 9 additions and 8 deletions

View File

@@ -1 +0,0 @@
../data/problems/Lab2A.html

View File

@@ -1 +0,0 @@
../data/custom_tags

View File

@@ -13,11 +13,15 @@ function ${ id }_load() {
postJSON('/modx/problem/${ id }/problem_check',
submit_data,
function(json) {
if(json['success'] == 'syntax')
alert('Syntax error');
else
${ id }_load();
switch(json.success) {
case 'incorrect': // Worked, but answer not
case 'correct':
${ id }_load();
//alert("!!"+json.success);
break;
default:
alert(json.success);
}
});
log_event('problem_check', submit_data);
});

View File

@@ -1 +0,0 @@
../data/problems/schematic_tutorial.html