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:
parent
661ebbe4a5
commit
8897fdbdab
1 changed files with 6 additions and 2 deletions
|
@ -19,11 +19,15 @@ function gamutable_fermer_modalbox($id_objet = 9999999999){
|
|||
id = "$id_objet";
|
||||
id = parseInt(id);
|
||||
if (id > 0 && id < 9999999999) {
|
||||
if (typeof app !== 'undefined') {
|
||||
app.rechargerJson(id);
|
||||
}
|
||||
$.modalboxclose();
|
||||
}
|
||||
if (id === 9999999999) {
|
||||
app.rechargerJson();
|
||||
if (typeof app !== 'undefined') {
|
||||
app.rechargerJson(id);
|
||||
}
|
||||
$.modalboxclose();
|
||||
}
|
||||
delete id;
|
||||
|
|
Loading…
Add table
Reference in a new issue