mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +01:00
fix more then 59 seconds set for "hms"
This commit is contained in:
parent
2841b43109
commit
e132cb0603
@ -741,7 +741,7 @@ var et2_date_duration = /** @class */ (function (_super) {
|
||||
this.options.value = _value;
|
||||
if (!this.options.select_unit && this.options.display_format.length > 1) {
|
||||
for (var i = this.options.display_format.length; --i >= 0;) {
|
||||
jQuery(this.duration[i]).val(this._unit_from_value(_value, this.options.display_format[i], i === this.options.display_format.length - 1));
|
||||
jQuery(this.duration[i]).val(this._unit_from_value(_value, this.options.display_format[i], !i));
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
@ -916,8 +916,7 @@ export class et2_date_duration extends et2_date
|
||||
{
|
||||
for (let i = this.options.display_format.length; --i >= 0;)
|
||||
{
|
||||
jQuery(this.duration[i]).val(this._unit_from_value(_value, this.options.display_format[i],
|
||||
i === this.options.display_format.length-1));
|
||||
jQuery(this.duration[i]).val(this._unit_from_value(_value, this.options.display_format[i], !i));
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user