reload the report list in the callback after the report list is saved, otherwise the reload causes a race condition with the json and (in my case) usually the reload wins.

This commit is contained in:
james 2010-03-29 20:57:04 +00:00
parent da17e3461c
commit 1e0c502de8

View File

@ -170,8 +170,9 @@ function edit_report(id,reports_id)
function save_report()
{
$('#debug').load("<?$_SERVER['PHP_SELF']?>?action=save", $('#report_form').serializeArray());
window.location.reload();
$('#debug').load("<?$_SERVER['PHP_SELF']?>?action=save", $('#report_form').serializeArray(), function() {
window.location.reload();
});
}
function add_report()