Skip to content
Snippets Groups Projects
Commit b20cd869 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

fix on disappearing title when removing appointment from daily planning

parent 3b1ab693
No related branches found
No related tags found
1 merge request!83fix on disappearing title when removing appointment from daily planning
Pipeline #
......@@ -42,10 +42,14 @@ function add_event(event, color, subjectId, boxBody) {
location = event.flying_team_location + ' (FT)';
borderColor = FLYING_TEAM_BORDER_COLOR;
}
var event_title = event.short_title;
if (event_title === undefined || event_title === "") {
event_title = event.title;
}
eventElement.data('event', {
appointment_start: event.appointment_start,
appointment_end: event.appointment_end,
title: event.short_title,
title: event_title,
stick: true,
color: color + " !important",
duration: event.duration,
......@@ -117,6 +121,7 @@ function get_subjects_events(day) {
boxHeader.append(title_subject);
$.each(subject.events, function (index_event, event) {
if (event.link_when) {
event.title = event.short_title;
event.color = subject.color + ' !important';
event.start = $.fullCalendar.moment(event.link_when);
event.end = $.fullCalendar.moment(event.link_end);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment