From 032403b0dfb5647de8606b790353df5822e8c9b1 Mon Sep 17 00:00:00 2001 From: "pavlov%pavlov.net" Date: Sat, 29 Jan 2005 00:47:51 +0000 Subject: [PATCH] partial fix for all day events. bug 278425. patch by jt@nerant.org. r=pavlov git-svn-id: svn://10.0.0.236/trunk@168486 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/calendar/base/src/calEvent.js | 1 + mozilla/calendar/resources/content/monthView.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/mozilla/calendar/base/src/calEvent.js b/mozilla/calendar/base/src/calEvent.js index ba170329b83..d05c4e786a9 100644 --- a/mozilla/calendar/base/src/calEvent.js +++ b/mozilla/calendar/base/src/calEvent.js @@ -68,6 +68,7 @@ calEvent.prototype = { this.cloneItemBaseInto(m); m.mStartDate = this.mStartDate.clone(); m.mEndDate = this.mEndDate.clone(); + m.isAllDay = this.isAllDay; return m; }, diff --git a/mozilla/calendar/resources/content/monthView.js b/mozilla/calendar/resources/content/monthView.js index ffe0b923609..09f729ab619 100644 --- a/mozilla/calendar/resources/content/monthView.js +++ b/mozilla/calendar/resources/content/monthView.js @@ -287,7 +287,7 @@ MonthView.prototype.createEventBox = function(itemOccurrence) eventBoxText.setAttribute("crop", "end"); eventBoxText.setAttribute("class", "month-day-event-text-class"); - if (itemOccurrence.isAllDay) { + if (calEvent.isAllDay) { eventBox.setAttribute("allday", "true"); eventBoxText.setAttribute("value", itemOccurrence.title ); // Create an image