changeset 50aa625342d0 in sao:default
details: https://hg.tryton.org/sao?cmd=changeset;node=50aa625342d0
description:
Add one day to calendar's end date only when calendar is for allDay
issue9003
review276741002
diffstat:
src/view/calendar.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 41fd053226d8 -r 50aa625342d0 src/view/calendar.js
--- a/src/view/calendar.js Thu Jan 23 15:58:36 2020 +0100
+++ b/src/view/calendar.js Thu Jan 23 20:48:49 2020 +0100
@@ -127,7 +127,7 @@
if (date_start) {
var allDay = date_start.isDate &&
(!date_end || date_end.isDate);
- if (date_end && !date_end.isSame(date_start) &&
+ if (allDay && date_end && !date_end.isSame(date_start) &&
this.screen.current_view.view_type == "calendar") {
// Add one day to allday event that last more than one day.
// http://github.com/fullcalendar/fullcalendar/issues/2909