(js) Set summary when creating event from DnD

This commit is contained in:
Francis Lachapelle committed 2016-02-03 14:37:53 -05:00
1 parent 7099432caf
commit 1eced8bcec
2 files changed
+2 -1

No files matched your search

@@ -151,6 +151,7 @@
if (component.isNew) {
coordinates = pointerHandler.currentEventCoordinates;
component.summary = '';
if (component.isAllDay)
coordinates.duration -= 96;
component.setDelta(coordinates.duration * 15);
@@ -131,7 +131,7 @@
newData = {
type: 'appointment',
pid: calendarData? calendarData.pid : Calendar.$defaultCalendar(),
//summary: l('New Event'),
summary: l('New Event'),
startDate: startDate,
isAllDay: isHourCell? 0 : 1
};