From e5a2c7212320ec74aaad2c09ec03cc44009a0d1d Mon Sep 17 00:00:00 2001 From: Piotr Mitros Date: Wed, 4 Jan 2012 19:01:56 -0500 Subject: [PATCH] Wiki now supports circuits, modulo bugs --- edit_circuit.html | 8 ++++++++ problem.js | 6 +++++- show_circuit.html | 2 ++ 3 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 edit_circuit.html create mode 100644 show_circuit.html 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 @@ +
+