mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 17:23:59 +00:00
Fixing bug color coding for events based on category.
This commit is contained in:
parent
e382083de4
commit
4bde9547fe
@ -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 );
|
||||
|
@ -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 )" );
|
||||
|
@ -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.
|
||||
*/
|
||||
|
@ -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 );
|
||||
|
@ -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 )" );
|
||||
|
@ -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.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user