forked from science-ation/science-ation
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:
parent
da17e3461c
commit
1e0c502de8
@ -170,8 +170,9 @@ function edit_report(id,reports_id)
|
|||||||
|
|
||||||
function save_report()
|
function save_report()
|
||||||
{
|
{
|
||||||
$('#debug').load("<?$_SERVER['PHP_SELF']?>?action=save", $('#report_form').serializeArray());
|
$('#debug').load("<?$_SERVER['PHP_SELF']?>?action=save", $('#report_form').serializeArray(), function() {
|
||||||
window.location.reload();
|
window.location.reload();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function add_report()
|
function add_report()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user