| Issue 211: | easy way to check if exist events on a day | |
| 3 people starred this issue and may be notified of changes. | Back to list |
What steps will reproduce the problem? 1. 2. 3. What is the expected output? What do you see instead? i want some function that return for me on a dayClick, if there's events on this day. how i can do this in a easy way? What version of the product are you using? On what operating system? v1.4 ubuntu 9.10 Please provide any additional information below.
Nov 26, 2009
#1
augusto_...@gmx.de
Nov 27, 2009
as augusto says, clientEvents it the best solution. here is an example (only works in
month view).
dayClick: function(date) {
var date2 = new Date(date.getYears(), date.getMonths(), date.getDate()+1);
var todaysEvents = $('#calendar').fullCalendar('clientEvents', function(event) {
return event.start >= date && event.start < date2;
});
}
Status:
Done
Labels: -Priority-Medium
Jul 28, 2011
date2 should be: var date2 = new Date(date.getFullYear(), date.getMonth(), date.getDate()+1); |
|
| ► Sign in to add a comment |