fix: app.rechargerJson(id) id peut etre un nombre négatif afin de pouvoir supprimer la ligne
This commit is contained in:
parent
17a979ed14
commit
13ec20a24f
1 changed files with 8 additions and 10 deletions
|
@ -86,15 +86,14 @@ function gamutable_generer_js($id_objet, $num){
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
id = parseInt(id);
|
id = parseInt(id);
|
||||||
if (id > 0 && id < 9999999999) {
|
|
||||||
if (typeof app$num !== 'undefined') {
|
|
||||||
app$num.rechargerJson(id);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (id === 9999999999) {
|
if (id === 9999999999) {
|
||||||
if (typeof app$num !== 'undefined') {
|
if (typeof app$num !== 'undefined') {
|
||||||
app$num.rechargerJson();
|
app$num.rechargerJson();
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
if (typeof app$num !== 'undefined') {
|
||||||
|
app$num.rechargerJson(id);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$.modalboxclose();
|
$.modalboxclose();
|
||||||
|
@ -131,15 +130,14 @@ function gamutable_recharger_tableau($id_objet = 9999999999, $num = null):string
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
id = parseInt(id);
|
id = parseInt(id);
|
||||||
if (id > 0 && id < 9999999999) {
|
|
||||||
if (typeof app$num !== 'undefined') {
|
|
||||||
app$num.rechargerJson(id);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (id === 9999999999) {
|
if (id === 9999999999) {
|
||||||
if (typeof app$num !== 'undefined') {
|
if (typeof app$num !== 'undefined') {
|
||||||
app$num.rechargerJson();
|
app$num.rechargerJson();
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
if (typeof app$num !== 'undefined') {
|
||||||
|
app$num.rechargerJson(id);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
delete id;
|
delete id;
|
||||||
|
|
Loading…
Add table
Reference in a new issue