My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 1693: Odd/Even for weeks
1 person starred this issue and may be notified of changes. Back to list
Status:  Done
Owner:  ----
Closed:  Aug 2013


Sign in to add a comment
 
Reported by root...@gmail.com, Feb 8, 2013
At my company we found the FullCalendar-plugin to be awesome, but we sometimes read the calendar wrongly because it isn't clear in one view what the weeks are.

We ended up adjusting your JavaScript-code a little:
fullcalendar.js
line 2232 + var oddeven = (i + 1) % 2 === 0;
And then replacing the code for creating the TR-tag
s += "<tr class='" + (oddeven ? 'week-odd' : 'week-even') + " fc-week" + i + "'>";

This way it's easy to style 'weeks'
#calendar .week-odd td {
    background-color: #E0E0E0;
}
#calendar .week-even td {
background-color: #FFFFFF;
}
Aug 21, 2013
Project Member #1 adamrs...@gmail.com
(No comment was entered for this change.)
Status: Done
Sign in to add a comment

Powered by Google Project Hosting