mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-13 01:18:42 +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;
|
this.options.value = _value;
|
||||||
if (!this.options.select_unit && this.options.display_format.length > 1) {
|
if (!this.options.select_unit && this.options.display_format.length > 1) {
|
||||||
for (var i = this.options.display_format.length; --i >= 0;) {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -916,8 +916,7 @@ export class et2_date_duration extends et2_date
|
|||||||
{
|
{
|
||||||
for (let i = this.options.display_format.length; --i >= 0;)
|
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],
|
jQuery(this.duration[i]).val(this._unit_from_value(_value, this.options.display_format[i], !i));
|
||||||
i === this.options.display_format.length-1));
|
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user