diff --git a/smash/web/api_views/daily_planning.py b/smash/web/api_views/daily_planning.py index f526803cd4873b114e3a7a09a50a93e3b29a601a..4a1438e32307ffbf4f5ef5c6c5d874d47752d873 100644 --- a/smash/web/api_views/daily_planning.py +++ b/smash/web/api_views/daily_planning.py @@ -217,6 +217,7 @@ def events(request, date): link_end = link_when + datetime.timedelta(minutes=link.appointment_type.default_duration) event = { 'title': link.appointment_type.description, + 'short_title': link.appointment_type.code, 'duration': build_duration(link.appointment_type.default_duration), 'subject': unicode(appointment_subject), 'id': '{}-{}'.format(i, j), diff --git a/smash/web/static/js/daily_planning.js b/smash/web/static/js/daily_planning.js index 3e8d99c733e69497c5ced378c970689cb6bd7f67..798ca84bd44276700fa660ec47e75e695e8366c8 100644 --- a/smash/web/static/js/daily_planning.js +++ b/smash/web/static/js/daily_planning.js @@ -45,7 +45,7 @@ function add_event(event, color, subjectId, boxBody) { eventElement.data('event', { appointment_start: event.appointment_start, appointment_end: event.appointment_end, - title: event.title, + title: event.short_title, stick: true, color: color + " !important", duration: event.duration, @@ -277,7 +277,7 @@ $(document).ready(function () { eventRender: function (event, element) { if (event.rendering !== 'background') { element.popover({ - title: event.title, + title: event.short_title, container: 'body', placement: 'bottom', trigger: 'click',