From 6d44c2407e938c0df742799c143162d36cc8cb6c Mon Sep 17 00:00:00 2001 From: Carlos Vega <carlos.vega@uni.lu> Date: Wed, 21 Nov 2018 11:31:22 +0100 Subject: [PATCH] there is no point in setting appointment in the past --- smash/web/templates/appointments/add.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smash/web/templates/appointments/add.html b/smash/web/templates/appointments/add.html index 22142924..51bc689f 100644 --- a/smash/web/templates/appointments/add.html +++ b/smash/web/templates/appointments/add.html @@ -144,7 +144,7 @@ New appointment for visit from {{visit_start}} to {{visit_end}} //SIDE CALENDAR addDailyPlanningCalendar('#side_calendar', true, { schedulerLicenseKey: 'CC-Attribution-NonCommercial-NoDerivatives', - defaultDate: moment('{{visit_start}}'), + defaultDate: moment.max(moment('{{visit_start}}'), moment()), editable: false, header: { left: 'prev,next today', -- GitLab