mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-16 18:31:26 +01:00
If value is '', don't show a unit either
This commit is contained in:
parent
390bb1f6f0
commit
860d37912b
@ -448,6 +448,9 @@ var et2_date_duration = et2_date.extend({
|
|||||||
}
|
}
|
||||||
_value = this.options.empty_not_0 && _value === '' || !this.options.empty_not_0 && !_value ? '' :
|
_value = this.options.empty_not_0 && _value === '' || !this.options.empty_not_0 && !_value ? '' :
|
||||||
(_unit == 'm' ? parseInt( _value) : (Math.round((_value / 60.0 / (_unit == 'd' ? this.options.hours_per_day : 1))*100)/100));
|
(_unit == 'm' ? parseInt( _value) : (Math.round((_value / 60.0 / (_unit == 'd' ? this.options.hours_per_day : 1))*100)/100));
|
||||||
|
|
||||||
|
if(_value === '') _unit = '';
|
||||||
|
|
||||||
// use decimal separator from user prefs
|
// use decimal separator from user prefs
|
||||||
var sep = '.';
|
var sep = '.';
|
||||||
var format = egw.preference('number_format');
|
var format = egw.preference('number_format');
|
||||||
|
Loading…
Reference in New Issue
Block a user