Pierre-François P. Ajout des parenthèses dans le calcul des champs numériques
This commit is contained in:
parent
aa78d59574
commit
1d2116101a
1 changed files with 3 additions and 2 deletions
|
|
@ -254,7 +254,8 @@ function set_value(p_ctl, p_value, p_add)
|
|||
function compute_number(value)
|
||||
{
|
||||
var retval = 0;
|
||||
var exp = new RegExp("^[0-9/*+-.]+$", "g");
|
||||
|
||||
var exp = new RegExp("^[0-9/*+-.()]+$", "g");
|
||||
/*pour éviter un eval() mal intentionné*/
|
||||
var res = exp.test(value);
|
||||
if (res)
|
||||
|
|
@ -3667,4 +3668,4 @@ function toggle_row_warning_enable(p_enable, p_row)
|
|||
} else {
|
||||
$(p_row).hide();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue