on recharge si pas d'erreur
This commit is contained in:
parent
4cb2349efb
commit
ac6b6e1a9a
1 changed files with 15 additions and 14 deletions
|
@ -21,22 +21,23 @@ jQuery(function () {
|
|||
dataType: 'json',
|
||||
async: true,
|
||||
}).done(function (retour) {
|
||||
if (parseInt(id) > 0) {
|
||||
app.rechargerJson(id);
|
||||
app.rechargerJson_deux(id);
|
||||
} else {
|
||||
app.rechargerJson();
|
||||
app.rechargerJson_deux();
|
||||
}
|
||||
if (nomBlocAjaxReload !== undefined) {
|
||||
console.log('depart reload: ' + nomBlocAjaxReload);
|
||||
ajaxReload(nomBlocAjaxReload, {
|
||||
args: { id },
|
||||
callback: function () {},
|
||||
});
|
||||
}
|
||||
if (!$.isEmptyObject(retour) && !$.isEmptyObject(retour.message_erreur)) {
|
||||
alert(retour.message_erreur);
|
||||
} else {
|
||||
if (parseInt(id) > 0) {
|
||||
app.rechargerJson(id);
|
||||
app.rechargerJson_deux(id);
|
||||
} else {
|
||||
app.rechargerJson();
|
||||
app.rechargerJson_deux();
|
||||
}
|
||||
if (nomBlocAjaxReload !== undefined) {
|
||||
console.log('depart reload: ' + nomBlocAjaxReload);
|
||||
ajaxReload(nomBlocAjaxReload, {
|
||||
args: { id },
|
||||
callback: function () {},
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue