mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-14 09:58:16 +01:00
Calendar: Fix multi-day date format in tooltip, place end date on second line
This commit is contained in:
parent
4367afaf27
commit
2ea9ae3d3d
@ -25,7 +25,7 @@ import {egw_getAppObjectManager, egwActionObject} from '../../api/js/egw_action/
|
|||||||
import {egw} from "../../api/js/jsapi/egw_global";
|
import {egw} from "../../api/js/jsapi/egw_global";
|
||||||
import {et2_container} from "../../api/js/etemplate/et2_core_baseWidget";
|
import {et2_container} from "../../api/js/etemplate/et2_core_baseWidget";
|
||||||
import {Et2Dialog} from "../../api/js/etemplate/Et2Dialog/Et2Dialog";
|
import {Et2Dialog} from "../../api/js/etemplate/Et2Dialog/Et2Dialog";
|
||||||
import {formatDate, formatTime} from "../../api/js/etemplate/Et2Date/Et2Date";
|
import {formatDate, formatDateTime, formatTime} from "../../api/js/etemplate/Et2Date/Et2Date";
|
||||||
import {ColorTranslator} from "colortranslator";
|
import {ColorTranslator} from "colortranslator";
|
||||||
import {StaticOptions as so} from "../../api/js/etemplate/Et2Select/StaticOptions";
|
import {StaticOptions as so} from "../../api/js/etemplate/Et2Select/StaticOptions";
|
||||||
import {Et2Select} from "../../api/js/etemplate/Et2Select/Et2Select";
|
import {Et2Select} from "../../api/js/etemplate/Et2Select/Et2Select";
|
||||||
@ -519,8 +519,8 @@ export class et2_calendar_event extends et2_valueWidget implements et2_IDetached
|
|||||||
|
|
||||||
const times = !this.options.value.multiday ?
|
const times = !this.options.value.multiday ?
|
||||||
'<span class="calendar_calEventLabel">' + this.egw().lang('Time') + '</span>: ' + timespan :
|
'<span class="calendar_calEventLabel">' + this.egw().lang('Time') + '</span>: ' + timespan :
|
||||||
'<span class="calendar_calEventLabel">' + this.egw().lang('Start') + '</span>: ' + start + ' ' +
|
'<span class="calendar_calEventLabel">' + this.egw().lang('Start') + '</span>: ' + formatDateTime(start).replace(' ', ' ') + ' ' +
|
||||||
'<span class="calendar_calEventLabel">' + this.egw().lang('End') + '</span>: ' + end;
|
'<span class="calendar_calEventLabel">' + this.egw().lang('End') + '</span>: ' + formatDateTime(end).replace(' ', ' ');
|
||||||
let cat_label : (string | string[]) = '';
|
let cat_label : (string | string[]) = '';
|
||||||
if(this.options.value.category)
|
if(this.options.value.category)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user