wet-boew/wet-boew — pull request #564 by danpoleary (2012-10-17 14:52:11+00:00)
Title: Changes required to support JSF, and to allow calendar to have custom class for events

I have made the following changes:

LIBLOCATION
I have modified pe-ap.js, to read a meta tag entry called "liblocation".

The content of which will over-ride the default pulled from the path to pe-ap.js. This was required do to the way that JSF implements resource libraries. This works with JSF 2.0 and 2.1 releases.

EVENTS CALENDAR
Because of a need to show events of different types, I modified eventscalendar.js to support the implementation of a custom class to use instead of calEvent. This works by adding an attribute to the tag called custClass="xxxx" where xxxx is the name of the class to use instead of calEvent.

This will allow a developer to have a local class is a css they maintain to appear as ie.
div.cal-days a.calEventT{
color:red !important;
background:#176ca7;
}

which in this example would change the date value to red. This is an example, you could also leave it and but a character before, such as:
div.cal-days a.calEventStar{
color:#FFF !important;
background:#176ca7;
}
a.calEventStar:before{
content: "*";
}
div.cal-days a.calEventDash{
color:#FFF !important;
background:#176ca7;
}
a.calEventDash:before{
content: "-";
}
Which would put a star in front of some dates and a dash in front of others.

Single-Day Event

October 11th 2012

Event Description

Single-Day Event 2

October 16th 2012

Event Description

I have left calEventT in the events-calendar.css as an example, I have also updated the demo to show the 11th in red.

Dan