diff --git a/app/assets/javascripts/fullcalendar.js b/app/assets/javascripts/fullcalendar.js index 75b64dbf..ad054c3f 100644 --- a/app/assets/javascripts/fullcalendar.js +++ b/app/assets/javascripts/fullcalendar.js @@ -10,6 +10,10 @@ $( document ).ready(function() { allDaySlot: false, slotMinTime: fullcalData.data('startHour') + ':00:00', slotMaxTime: fullcalData.data('endHour') + ':00:00', + validRange: { + start: fullcalData.data('startDate'), + end: fullcalData.data('endDate') + }, timeZone: 'UTC', // TODO: Events are stored in conference's timezone implicitly (UTC+0) in the database initialDate: fullcalData.data('day'), initialView: 'resourceTimeGridDay', diff --git a/app/views/schedules/vertical_schedule.haml b/app/views/schedules/vertical_schedule.haml index ac538c0b..b238b1a6 100644 --- a/app/views/schedules/vertical_schedule.haml +++ b/app/views/schedules/vertical_schedule.haml @@ -8,4 +8,6 @@ #vert-schedule-full-calendar #fullcalendar{ data: { rooms: @rooms, events: @event_schedules, day: @day, 'start-hour': @conference.start_hour, 'end-hour': @conference.end_hour, + 'start-date': @conference.start_date, + 'end-date': @conference.end_date + 1.day, 'scheduler-license-key': @scheduler_license_key } }