Hello everybody and thanks for taking the time to read this .
Iam working with jquery callendar and iam trying to build a custom view , i was wandering if i am using the agendaweek view to view all the days in that week how can i block the calendar for only one week in the future ? What i mean is that i just want it to show for one week in the future and no more. This is my configuration ;
$('#calendar').fullCalendar({
header: {
left: 'next today',
center: 'title',
right: 'week'
},
defaultView: 'basicWeek',
editable: true,
events: [<?php echo $calendar_events?>
]
});
});
Thanks everybody in advanced
simple solution for 1 week blockage in week view. For this code to work you need getWeekNumber function from http://www.merlyn.demon.co.uk/weekcalc.htm#WNR
What you need to do is to check current week number after loading view: