Closed Bug 342933 Opened 19 years ago Closed 15 years ago

Differentiate between tasks and events in day/week view

Categories

(Calendar :: Internal Components, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jminta, Assigned: Fallen)

Details

(Whiteboard: [good first bug])

Attachments

(1 file)

In the month view, tasks get a *, to show that they're not events. In the day/week view, they look the same. We should fix that.
The bugspam monkeys have struck again. They are currently chewing on default assignees for Calendar. Be afraid for your sanity!
Assignee: base → nobody
Still happens with 1.0b1
Whiteboard: [good first bug]
Attached patch Fix - v1 β€” β€” Splinter Review
Assignee: nobody → philipp
Status: NEW → ASSIGNED
Attachment #432836 - Flags: review?(Mozilla)
Comment on attachment 432836 [details] [diff] [review] Fix - v1 >diff --git a/calendar/base/content/calendar-view-core.xml b/calendar/base/content/calendar-view-core.xml >--- a/calendar/base/content/calendar-view-core.xml >+++ b/calendar/base/content/calendar-view-core.xml >@@ -218,19 +218,22 @@ > // something is added here, it should also be xbl:inherited correctly > // in the <content> section of this binding, and all that inherit it. > > // Event type specific properties > if (isEvent(item)) { > if (item.startDate.isDate) { > this.setAttribute("allday", "true"); > } >+ >+ this.setAttribute("itemType", "event"); > } else if (isToDo(item)) { > // progress attribute > this.setAttribute("progress", getProgressAtom(item)); >+ this.setAttribute("itemType", "todo"); > } > > if (this.calendarView && > item.hashId in this.calendarView.mFlashingEvents) { > this.setAttribute("flashing", "true"); > } > > if (alarms.length) { Please delete added extra newline here. You could also use this patch to change to cal.isEvent and cal.isToDo and to fix indentation after "if (item.startDate.isDate) {" Otherwise patch looks good and works. r=markus
Attachment #432836 - Flags: review?(Mozilla) → review+
Comments taken care of. Pushed to comm-central <http://hg.mozilla.org/comm-central/rev/933ffb84098a> -> FIXED
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Target Milestone: --- → 1.0b2
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: