(js) Set summary when creating event from DnD

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

View File

@@ -151,6 +151,7 @@
if (component.isNew) {
coordinates = pointerHandler.currentEventCoordinates;
component.summary = '';
if (component.isAllDay)
coordinates.duration -= 96;
component.setDelta(coordinates.duration * 15);

View File

@@ -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
};