Categories | Question details Back To List | ||
Non-Working hours support Hello, I want to specify a set of non working hours of day which may vary on day-to-day bases. Like, (1pm - 3pm AND 10am - 11am) And user should not be allowed to create events in those non-working hours as well as, those hours in calendar should be displayed in different colors. Any pointer about how to achive will be helpful. Thanks, Answer posted by Alex (support) on Dec 10, 2009 01:43 Hello, there is onEventCreated event. It occurs after event is created. So, you can check the start_date and end_date properties and delete the new event (scheduler.deleteEvent(event_id)) if it is necessary. scheduler.attachEvent("onEventCreated",function(id,e){ var end= event.end_date; /*your code here*/ |