Hello,
I am using arshaw fullcalendar v1.5.2 (only month view ) for property booking website , its a great plugin but I stuck in few problem, I have seen similar issues on google code , but there is nothing clear really. :(, Please help me to solve these problems
Here is working demo and JS Code
What I have done so far
-
Fetched events data from two different json files below
-
json_events.php: this holds booking detail which is booked from front end by user; admin can not change any details of these type of events. -
new_charges.php: this holds special charges events detail ,admin add/update delete the new charges for any future date(s) .
-
-
admin can view the details of any event when he click on an event
- admin can add/edit and delete new events on calendar for future dates or range of dates, that will stored on
new_charges.php
here is my issues
a) I want that only one event is allowed for a date(s).
b) Currently if user click on a day on which any booking event or special charges event is there, then it alerts that day is booked,
but after that it will show a prompt box to enter event title,
this is occured because I have used both dayClick and select methods
How do i stops further propagation if a day already have an event ?
c) suppose a day 15 january (wrapped by fc-day17 div) is booked ( I have applied a class booked for events ) and now when I go to next month and click on fc-day17 div, it also alert that day is booked whereas there is no booking
by examining the code i found that it still have the class booked for another months for the same divs
I think there is something missing during eventRender methods?
does `eventRender()` method is called only once when initialize the calendar
or each time when we go `prev` or `next` month?
d) I have changed background-color for special charges events during rendering events via json file, but when I delte that events, it does not change back the normal background and still say that day is booked.
how do I make default background of a date if I delete the events of that day??
e) how to hide all events related to previous months?
EDIT This construction
meansthat we select days of current month (
:not(.fc-other-month)) which satisfy thefilterconditions (return true) : The days of month equal the days of eventsAbout your code as I said you must remove dayClick event, and your select event is:
About
viewDisplay.Its is fired every time when we go to previous or next month, and it fired after
eventAfterRender. If we useeventAfterRenderand go to month without events we have no effect. The free cells stay booked.I offer analyse events of current month in
viewDisplay: