la version gulpée du dernier commit
This commit is contained in:
parent
ac6b6e1a9a
commit
14a23dc922
1 changed files with 19 additions and 19 deletions
|
@ -48,6 +48,9 @@ jQuery(function () {
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
async: true
|
async: true
|
||||||
}).done(function (retour) {
|
}).done(function (retour) {
|
||||||
|
if (!$.isEmptyObject(retour) && !$.isEmptyObject(retour.message_erreur)) {
|
||||||
|
alert(retour.message_erreur);
|
||||||
|
} else {
|
||||||
if (parseInt(id) > 0) {
|
if (parseInt(id) > 0) {
|
||||||
app.rechargerJson(id);
|
app.rechargerJson(id);
|
||||||
app.rechargerJson_deux(id);
|
app.rechargerJson_deux(id);
|
||||||
|
@ -65,9 +68,6 @@ jQuery(function () {
|
||||||
callback: function callback() {}
|
callback: function callback() {}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Array.isArray(retour) && retour.message_erreur !== undefined) {
|
|
||||||
alert(retour.message_erreur);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}); // lancement d'une modalbox
|
}); // lancement d'une modalbox
|
||||||
|
|
Loading…
Add table
Reference in a new issue