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)
Calendar
Internal Components
Tracking
(Not tracked)
RESOLVED
FIXED
1.0b2
People
(Reporter: jminta, Assigned: Fallen)
Details
(Whiteboard: [good first bug])
Attachments
(1 file)
|
10.03 KB,
patch
|
Taraman
:
review+
|
Details | Diff | Splinter Review |
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.
Comment 1•19 years ago
|
||
The bugspam monkeys have struck again. They are currently chewing on default assignees for Calendar. Be afraid for your sanity!
Assignee: base → nobody
| Assignee | ||
Comment 2•15 years ago
|
||
Still happens with 1.0b1
| Assignee | ||
Updated•15 years ago
|
Whiteboard: [good first bug]
| Assignee | ||
Comment 3•15 years ago
|
||
Comment 4•15 years ago
|
||
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+
| Assignee | ||
Comment 5•15 years ago
|
||
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.
Description
•