зеркало из https://github.com/mozilla/pjs.git
Fixed bug 236121: Events with space in their category cause JS error and don't show
This commit is contained in:
Родитель
7f19665189
Коммит
0ef39e252c
|
@ -350,11 +350,6 @@ DayView.prototype.createEventBox = function dayview_createEventBox( calendarEven
|
|||
eventBox.setAttribute( "tooltip", "eventTooltip" );
|
||||
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( "class", "day-view-event-label-class" );
|
||||
eventHTMLElement.setAttribute( "value", calendarEventDisplay.event.title );
|
||||
|
|
|
@ -287,12 +287,7 @@ MonthView.prototype.refreshEvents = function monthView_refreshEvents( )
|
|||
eventBox.setAttribute("class", "month-day-event-box-class " + containerName );
|
||||
|
||||
// end calendar color change by CofC
|
||||
|
||||
if( calendarEventDisplay.event.categories && calendarEventDisplay.event.categories != "" )
|
||||
{
|
||||
eventBox.setAttribute( calendarEventDisplay.event.categories, "true" );
|
||||
}
|
||||
|
||||
|
||||
eventBox.setAttribute( "eventbox", "monthview" );
|
||||
eventBox.setAttribute( "onclick", "monthEventBoxClickEvent( this, event )" );
|
||||
eventBox.setAttribute( "ondblclick", "monthEventBoxDoubleClickEvent( this, event )" );
|
||||
|
|
|
@ -322,11 +322,6 @@ MultiweekView.prototype.refreshEvents = function multiweekView_refreshEvents( )
|
|||
|
||||
// end calendar color change by CofC
|
||||
|
||||
if( calendarEventDisplay.event.categories && calendarEventDisplay.event.categories != "" )
|
||||
{
|
||||
eventBox.setAttribute( calendarEventDisplay.event.categories, "true" );
|
||||
}
|
||||
|
||||
eventBox.setAttribute( "eventbox", "multiweekview" );
|
||||
eventBox.setAttribute( "onclick", "monthEventBoxClickEvent( this, event )" );
|
||||
eventBox.setAttribute( "ondblclick", "monthEventBoxDoubleClickEvent( this, event )" );
|
||||
|
|
|
@ -465,10 +465,6 @@ WeekView.prototype.createEventBox = function ( calendarEventDisplay, dayIndex )
|
|||
eventBox.setAttribute( "name", "week-view-event-box-"+calendarEventDisplay.event.id );
|
||||
eventBox.setAttribute( "onmouseover", "gCalendarWindow.changeMouseOverInfo( calendarEventDisplay, event )" );
|
||||
eventBox.setAttribute( "tooltip", "eventTooltip" );
|
||||
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.
|
||||
|
|
Загрузка…
Ссылка в новой задаче