la version gulpée du dernier commit

This commit is contained in:
cy_altern 2022-06-03 14:14:57 +02:00
parent ac6b6e1a9a
commit 14a23dc922

View file

@ -48,26 +48,26 @@ jQuery(function () {
dataType: 'json', dataType: 'json',
async: true async: true
}).done(function (retour) { }).done(function (retour) {
if (parseInt(id) > 0) { if (!$.isEmptyObject(retour) && !$.isEmptyObject(retour.message_erreur)) {
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: id
},
callback: function callback() {}
});
}
if (Array.isArray(retour) && retour.message_erreur !== undefined) {
alert(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: id
},
callback: function callback() {}
});
}
} }
}); });
}); // lancement d'une modalbox }); // lancement d'une modalbox