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 = "$id_objet";
|
||||||
id = parseInt(id);
|
id = parseInt(id);
|
||||||
if (id > 0 && id < 9999999999) {
|
if (id > 0 && id < 9999999999) {
|
||||||
|
if (typeof app !== 'undefined') {
|
||||||
app.rechargerJson(id);
|
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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue