Fixed bug 236121: Events with space in their category cause JS error and don't show

This commit is contained in:
mostafah%oeone.com 2004-03-02 16:28:01 +00:00
Родитель 7f19665189
Коммит 0ef39e252c
4 изменённых файлов: 1 добавлений и 20 удалений

Просмотреть файл

@ -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 );

Просмотреть файл

@ -288,11 +288,6 @@ MonthView.prototype.refreshEvents = function monthView_refreshEvents( )
// 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.