Fixing bug color coding for events based on category.

This commit is contained in:
mikep%oeone.com 2002-08-16 13:46:14 +00:00
parent e382083de4
commit 4bde9547fe
6 changed files with 28 additions and 2 deletions

View File

@ -339,6 +339,10 @@ DayView.prototype.createEventBox = function ( calendarEventDisplay )
eventBox.setAttribute( "onmouseover", "gCalendarWindow.mouseOverInfo( calendarEventDisplay, event )" );
eventBox.setAttribute( "tooltip", "savetip" );
eventBox.setAttribute( "name", "day-view-event-box-"+calendarEventDisplay.event.id );
if( calendarEventDisplay.event.categories && calendarEventDisplay.event.categories != "" )
{
eventBox.setAttribute( calendarEventDisplay.event.categories, "true" );
}
var eventHTMLElement = document.createElement( "label" );
eventHTMLElement.setAttribute( "id", "day-view-event-html"+calendarEventDisplay.event.id );

View File

@ -266,6 +266,11 @@ MonthView.prototype.refreshEvents = function( )
eventBox.setAttribute( "name", "month-view-event-box-"+calendarEventDisplay.event.id );
eventBox.setAttribute( "event"+calendarEventDisplay.event.id, true );
eventBox.setAttribute( "class", "month-day-event-box-class" );
if( calendarEventDisplay.event.categories && calendarEventDisplay.event.categories != "" )
{
eventBox.setAttribute( calendarEventDisplay.event.categories, "true" );
}
eventBox.setAttribute( "eventbox", "monthview" );
eventBox.setAttribute( "onclick", "gCalendarWindow.monthView.clickEventBox( this, event )" );
eventBox.setAttribute( "ondblclick", "monthEventBoxDoubleClickEvent( this, event )" );

View File

@ -373,7 +373,11 @@ WeekView.prototype.createEventBox = function ( calendarEventDisplay, dayIndex )
eventBox.setAttribute( "name", "week-view-event-box-"+calendarEventDisplay.event.id );
eventBox.setAttribute( "onmouseover", "gCalendarWindow.mouseOverInfo( calendarEventDisplay, event )" );
eventBox.setAttribute( "tooltip", "savetip" );
if( calendarEventDisplay.event.categories && calendarEventDisplay.event.categories != "" )
{
eventBox.setAttribute( calendarEventDisplay.event.categories, "true" );
}
/*
** The event description. This doesn't go multi line, but does crop properly.
*/

View File

@ -339,6 +339,10 @@ DayView.prototype.createEventBox = function ( calendarEventDisplay )
eventBox.setAttribute( "onmouseover", "gCalendarWindow.mouseOverInfo( calendarEventDisplay, event )" );
eventBox.setAttribute( "tooltip", "savetip" );
eventBox.setAttribute( "name", "day-view-event-box-"+calendarEventDisplay.event.id );
if( calendarEventDisplay.event.categories && calendarEventDisplay.event.categories != "" )
{
eventBox.setAttribute( calendarEventDisplay.event.categories, "true" );
}
var eventHTMLElement = document.createElement( "label" );
eventHTMLElement.setAttribute( "id", "day-view-event-html"+calendarEventDisplay.event.id );

View File

@ -266,6 +266,11 @@ MonthView.prototype.refreshEvents = function( )
eventBox.setAttribute( "name", "month-view-event-box-"+calendarEventDisplay.event.id );
eventBox.setAttribute( "event"+calendarEventDisplay.event.id, true );
eventBox.setAttribute( "class", "month-day-event-box-class" );
if( calendarEventDisplay.event.categories && calendarEventDisplay.event.categories != "" )
{
eventBox.setAttribute( calendarEventDisplay.event.categories, "true" );
}
eventBox.setAttribute( "eventbox", "monthview" );
eventBox.setAttribute( "onclick", "gCalendarWindow.monthView.clickEventBox( this, event )" );
eventBox.setAttribute( "ondblclick", "monthEventBoxDoubleClickEvent( this, event )" );

View File

@ -373,7 +373,11 @@ WeekView.prototype.createEventBox = function ( calendarEventDisplay, dayIndex )
eventBox.setAttribute( "name", "week-view-event-box-"+calendarEventDisplay.event.id );
eventBox.setAttribute( "onmouseover", "gCalendarWindow.mouseOverInfo( calendarEventDisplay, event )" );
eventBox.setAttribute( "tooltip", "savetip" );
if( calendarEventDisplay.event.categories && calendarEventDisplay.event.categories != "" )
{
eventBox.setAttribute( calendarEventDisplay.event.categories, "true" );
}
/*
** The event description. This doesn't go multi line, but does crop properly.
*/