From 2fbe6bd34f66e9fe723f7dd6dc1b7fc1e788ad2e Mon Sep 17 00:00:00 2001 From: Piotr Mitros Date: Fri, 9 Dec 2011 11:45:04 -0500 Subject: [PATCH] AJAX problems work --- problem.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/problem.html b/problem.html index 0222f57a82..76e56c6311 100644 --- a/problem.html +++ b/problem.html @@ -22,8 +22,9 @@ } }); } else /* if 'Reset' */ { + // Possible cleanup: Move from getJSON to just load $.getJSON('/modx/problem/${ id }/problem_reset', {'id':'${ id }'}, function(json) { - location.reload(true); // TODO: Reimplement with AJAX. + $('#main_${ id }').html(json); }); } });