ne pas planter le script de redirection si on envoie un form venant de gamutable dans une page autonom (pas en popin du gamutable)

This commit is contained in:
cy_altern 2022-03-16 19:45:18 +01:00
parent 661ebbe4a5
commit 8897fdbdab

View file

@ -19,11 +19,15 @@ function gamutable_fermer_modalbox($id_objet = 9999999999){
id = "$id_objet"; id = "$id_objet";
id = parseInt(id); id = parseInt(id);
if (id > 0 && id < 9999999999) { if (id > 0 && id < 9999999999) {
app.rechargerJson(id); if (typeof app !== 'undefined') {
app.rechargerJson(id);
}
$.modalboxclose(); $.modalboxclose();
} }
if (id === 9999999999) { if (id === 9999999999) {
app.rechargerJson(); if (typeof app !== 'undefined') {
app.rechargerJson(id);
}
$.modalboxclose(); $.modalboxclose();
} }
delete id; delete id;