diff --git a/gamutable_fonctions.php b/gamutable_fonctions.php index da061c4..caa162b 100644 --- a/gamutable_fonctions.php +++ b/gamutable_fonctions.php @@ -86,15 +86,14 @@ function gamutable_generer_js($id_objet, $num){ } } else { id = parseInt(id); - if (id > 0 && id < 9999999999) { - if (typeof app$num !== 'undefined') { - app$num.rechargerJson(id); - } - } if (id === 9999999999) { if (typeof app$num !== 'undefined') { app$num.rechargerJson(); } + } else { + if (typeof app$num !== 'undefined') { + app$num.rechargerJson(id); + } } } $.modalboxclose(); @@ -131,15 +130,14 @@ function gamutable_recharger_tableau($id_objet = 9999999999, $num = null):string } } else { id = parseInt(id); - if (id > 0 && id < 9999999999) { - if (typeof app$num !== 'undefined') { - app$num.rechargerJson(id); - } - } if (id === 9999999999) { if (typeof app$num !== 'undefined') { app$num.rechargerJson(); } + } else { + if (typeof app$num !== 'undefined') { + app$num.rechargerJson(id); + } } } delete id;