My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
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
Status:  Done
Owner:  ----
Closed:  Nov 2009


Sign in to add a comment
 
Reported by guilherm...@gmail.com, Nov 26, 2009
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
you can search in the clientEvents array filtering with id and start values.
Nov 27, 2009
Project Member #2 adamrs...@gmail.com
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
#3 l...@lukem.co.uk
date2 should be:  var date2 = new Date(date.getFullYear(), date.getMonth(), date.getDate()+1);
Sign in to add a comment

Powered by Google Project Hosting