mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-18 11:58:24 +01:00
Et2NumberReadonly: If value is null, just show nothing
This commit is contained in:
parent
f8904ef126
commit
32ce18b832
@ -25,9 +25,13 @@ export class Et2NumberReadonly extends Et2TextboxReadonly
|
|||||||
|
|
||||||
set_value(val)
|
set_value(val)
|
||||||
{
|
{
|
||||||
if (""+val !== "")
|
if(val === null)
|
||||||
{
|
{
|
||||||
if (typeof this.precision !== 'undefined')
|
val = "";
|
||||||
|
}
|
||||||
|
else if("" + val !== "")
|
||||||
|
{
|
||||||
|
if(typeof this.precision !== 'undefined')
|
||||||
{
|
{
|
||||||
val = parseFloat(val).toFixed(this.precision);
|
val = parseFloat(val).toFixed(this.precision);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user