Bugfix: check the right object property
This commit is contained in:
parent
1a47608fe2
commit
aea9f64676
1 changed files with 2 additions and 2 deletions
|
@ -2349,7 +2349,7 @@ function rcube_calendar_ui(settings)
|
|||
event.end = new Date(event.start.getTime() + (allDay ? DAY_MS : HOUR_MS));
|
||||
}
|
||||
// moved to all-day section: set times to 12:00 - 13:00
|
||||
if (allDay && !event.allday) {
|
||||
if (allDay && !event.allDay) {
|
||||
event.start.setHours(12);
|
||||
event.start.setMinutes(0);
|
||||
event.start.setSeconds(0);
|
||||
|
@ -2358,7 +2358,7 @@ function rcube_calendar_ui(settings)
|
|||
event.end.setSeconds(0);
|
||||
}
|
||||
// moved from all-day section: set times to working hours
|
||||
else if (event.allday && !allDay) {
|
||||
else if (event.allDay && !allDay) {
|
||||
var newstart = event.start.getTime();
|
||||
revertFunc(); // revert to get original duration
|
||||
var numdays = Math.max(1, Math.round((event.end.getTime() - event.start.getTime()) / DAY_MS)) - 1;
|
||||
|
|
Loading…
Add table
Reference in a new issue