Commit e5a2c721 by Piotr Mitros

Wiki now supports circuits, modulo bugs

parent 95a52a08
<div align="center">
<form onsubmit="return submit_circuit('${name}');" action="" method="post">
<!--input type="hidden" class="schematic" width="600" height="400" name="schematic" value="" /-->
${ circuit_line }
<input type="submit" value="save">
<input type="hidden" name="csrfmiddlewaretoken" id="csrfmiddlewaretoken">
</form>
</div>
...@@ -12,7 +12,11 @@ function ${ id }_load() { ...@@ -12,7 +12,11 @@ function ${ id }_load() {
postJSON('/modx/problem/${ id }/problem_check', postJSON('/modx/problem/${ id }/problem_check',
submit_data, submit_data,
function(json) { function(json) {
${ id }_load();
if(json['success'] == 'syntax')
alert('Syntax error');
else
${ id }_load();
}); });
log_event('problem_check', submit_data); log_event('problem_check', submit_data);
}); });
......
<div align="center" id="div_wiki_circuit_${name}" class="div_wiki_circuit">
</div>
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