From 23ed5e4ddf38f0d27976bb27091c5ff33662958f Mon Sep 17 00:00:00 2001 From: Joan Sanchez Date: Mon, 25 Feb 2019 12:22:04 +0100 Subject: [PATCH] added offset calendar remove selection --- front/core/components/calendar/index.js | 9 --------- modules/agency/front/calendar/index.js | 5 +---- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/front/core/components/calendar/index.js b/front/core/components/calendar/index.js index 99b20c92f..fbc3932cf 100644 --- a/front/core/components/calendar/index.js +++ b/front/core/components/calendar/index.js @@ -139,15 +139,6 @@ export default class Calendar extends Component { return event.date >= newDate && event.date <= newDate; }); - console.log(this.events); - console.log(newDate); - - /* if (curDate >= newDate && curDate <= newDate) - color = 'orange'; */ - - /* if (newDate.getMonth() === this.currentMonth.getMonth() && newDate.getDay() == 6) - color = 'light-blue'; */ - if (newDate.getMonth() === this.currentMonth.getMonth() && newDate.getDay() == 0) color = 'red'; diff --git a/modules/agency/front/calendar/index.js b/modules/agency/front/calendar/index.js index 64dd5ef84..133d6cdf3 100644 --- a/modules/agency/front/calendar/index.js +++ b/modules/agency/front/calendar/index.js @@ -116,10 +116,7 @@ class Controller { if (event && !event.isRemovable) return false; - // FIXME - Date offset - let date = new Date(day.date); - date.setHours(0, 0, 0, 0); - dates.push(date); + dates.push(day.date); this.stMonth.removeEvent(day.date); this.stMonth.repaint();