Commit 2fbe6bd3 by Piotr Mitros

AJAX problems work

parent 24df4a0b
......@@ -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);
});
}
});
......
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