From 0ef39e252c1ed1cdef1ae0a95e2147dd6db11d10 Mon Sep 17 00:00:00 2001 From: "mostafah%oeone.com" Date: Tue, 2 Mar 2004 16:28:01 +0000 Subject: [PATCH] Fixed bug 236121: Events with space in their category cause JS error and don't show --- calendar/resources/content/dayView.js | 5 ----- calendar/resources/content/monthView.js | 7 +------ calendar/resources/content/multiweekView.js | 5 ----- calendar/resources/content/weekView.js | 4 ---- 4 files changed, 1 insertion(+), 20 deletions(-) diff --git a/calendar/resources/content/dayView.js b/calendar/resources/content/dayView.js index 0e7bfdc2b12..c50ef946a42 100644 --- a/calendar/resources/content/dayView.js +++ b/calendar/resources/content/dayView.js @@ -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 ); diff --git a/calendar/resources/content/monthView.js b/calendar/resources/content/monthView.js index 00d6b7ba0c7..8cc081b74e3 100644 --- a/calendar/resources/content/monthView.js +++ b/calendar/resources/content/monthView.js @@ -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 )" ); diff --git a/calendar/resources/content/multiweekView.js b/calendar/resources/content/multiweekView.js index 8603aef9b0e..95bf05a2b0e 100644 --- a/calendar/resources/content/multiweekView.js +++ b/calendar/resources/content/multiweekView.js @@ -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 )" ); diff --git a/calendar/resources/content/weekView.js b/calendar/resources/content/weekView.js index cb60a80ae3f..d6a057ed4ae 100644 --- a/calendar/resources/content/weekView.js +++ b/calendar/resources/content/weekView.js @@ -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.