From 95a52a08c33a68265d772ba5b4df1939d702e272 Mon Sep 17 00:00:00 2001 From: Piotr Mitros Date: Mon, 2 Jan 2012 17:04:04 -0500 Subject: [PATCH] Fixed show_answer --- problem.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/problem.js b/problem.js index b6767cf68e..bb2d07ce8b 100644 --- a/problem.js +++ b/problem.js @@ -30,12 +30,12 @@ function ${ id }_load() { }); $('#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) { $("#answer_${ id }_"+key).text(data[key]); } }); - log_event('problem_show', submit_data); + log_event('problem_show', {'problem':'${ id }'}); }); $('#save_${ id }').click(function() {