Skip to content

Instantly share code, notes, and snippets.

@jmertic
Created July 23, 2012 04:52
Show Gist options
  • Select an option

  • Save jmertic/3162013 to your computer and use it in GitHub Desktop.

Select an option

Save jmertic/3162013 to your computer and use it in GitHub Desktop.
// ------------------------------------------------------------
// Lets lookup the item.status in the activity_colors
// ------------------------------------------------------------
if (item.module_name =="Meetings") {
el.style.backgroundColor = CAL.activity_colors[item.status]['body'];
el.style.borderColor = CAL.activity_colors[item.status]['border'];
}
else {
// The next 2 lines are the orignial Cal.js code.
el.style.backgroundColor = CAL.activity_colors[item.module_name]['body'];
el.style.borderColor = CAL.activity_colors[item.module_name]['border'];
}
// ------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment