| Issue 651: | Change color of slots / days | |
| 1 person starred this issue and may be notified of changes. | Back to list |
First of all, great work this calendar!
I have two questions:
1. Which CSS elements do I have to change in order to change the color of the slots at the left? I can't figure it out....
2. Is there an easy way to change the color of a specific day (for example Christmas day)? I've seen a issue like this, but no solution found. I already tried something like this....Maybe this will cause other ideas.
/-----------------
iY = $.fullCalendar.formatDate(oView.visStart, 'yyyy');
iM = $.fullCalendar.formatDate(oView.visStart, 'MM');
iD = $.fullCalendar.formatDate(oView.visStart, 'dd');
oStartDate = new Date(iY, iM-1, iD);
iY = $.fullCalendar.formatDate(oView.visEnd, 'yyyy');
iM = $.fullCalendar.formatDate(oView.visEnd, 'MM');
iD = $.fullCalendar.formatDate(oView.visEnd, 'dd');
oEndDate = new Date(iY, iM-1, iD);
while(oStartDate <= oEndDate)
{
oStartDate.setDate(oStartDate.getDate()+1);
sStartDate = $.fullCalendar.formatDate(oStartDate, 'yyyy-MM-dd');
if(typeof(aFreeDays[sStartDate])!='undefined')
{
iDayNr = oStartDate.getDay();
$(".fc-"+aDaysShort[iDayNr]).css('background-color', 'red');
}
}
------------------/
Thanks in advance
Oct 7, 2010
Project Member
#1
adamrs...@gmail.com
Status:
Done
|
|
| ► Sign in to add a comment |