diff --git a/edit_circuit.html b/edit_circuit.html new file mode 100644 index 0000000000..ca72cf040d --- /dev/null +++ b/edit_circuit.html @@ -0,0 +1,8 @@ +
+
+ +${ circuit_line } + + +
+
diff --git a/problem.js b/problem.js index bb2d07ce8b..516198a8b3 100644 --- a/problem.js +++ b/problem.js @@ -12,7 +12,11 @@ function ${ id }_load() { postJSON('/modx/problem/${ id }/problem_check', submit_data, function(json) { - ${ id }_load(); + + if(json['success'] == 'syntax') + alert('Syntax error'); + else + ${ id }_load(); }); log_event('problem_check', submit_data); }); diff --git a/show_circuit.html b/show_circuit.html new file mode 100644 index 0000000000..69a66f9a03 --- /dev/null +++ b/show_circuit.html @@ -0,0 +1,2 @@ +
+