AJAX problems work

This commit is contained in:
Piotr Mitros
2011-12-09 11:45:04 -05:00
parent 24df4a0bc9
commit 2fbe6bd34f

View File

@@ -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);
});
}
});