Commit 95a52a08 by Piotr Mitros

Fixed show_answer

parent 081bdd92
...@@ -30,12 +30,12 @@ function ${ id }_load() { ...@@ -30,12 +30,12 @@ function ${ id }_load() {
}); });
$('#show_${ id }').click(function() { $('#show_${ id }').click(function() {
postJSON('/modx/problem/${ id }/problem_show', function(data) { postJSON('/modx/problem/${ id }/problem_show', {}, function(data) {
for (var key in data) { for (var key in data) {
$("#answer_${ id }_"+key).text(data[key]); $("#answer_${ id }_"+key).text(data[key]);
} }
}); });
log_event('problem_show', submit_data); log_event('problem_show', {'problem':'${ id }'});
}); });
$('#save_${ id }').click(function() { $('#save_${ id }').click(function() {
......
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