diff --git a/client/modules/crm/src/views/calendar/calendar.js b/client/modules/crm/src/views/calendar/calendar.js index c466f1c29c..1c6623d768 100644 --- a/client/modules/crm/src/views/calendar/calendar.js +++ b/client/modules/crm/src/views/calendar/calendar.js @@ -970,25 +970,35 @@ class CalendarView extends View { options.eventContent = arg => { const event = /** @type {EventImpl} */arg.event; - let $content = $('
'); + const $content = $('
'); $content.append( $('
') - .addClass('fc-event-title') - .text(event.title) + .append( + $('
') + .addClass('fc-event-main-frame') + .append( + arg.timeText ? + $('
').addClass('fc-event-time').text(arg.timeText) : + undefined + ) + .append( + $('
').addClass('fc-event-title').text(event.title) + ) + ) ); const userIdList = event.extendedProps.userIdList || []; userIdList.forEach(userId => { - let userName = event.extendedProps.userNameMap[userId] || ''; + const userName = event.extendedProps.userNameMap[userId] || ''; let avatarHtml = this.getHelper().getAvatarHtml(userId, 'small', 13); if (avatarHtml) { avatarHtml += ' '; } - let $div = $('
') + const $div = $('
') .addClass('user') .css({overflow: 'hidden'}) .append(avatarHtml)