Closed Bug 331145 Opened 20 years ago Closed 19 years ago

Tooltip for task without due date is not displayed and causes javascript error

Categories

(Calendar :: Sunbird Only, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: ssitter, Assigned: jminta)

References

Details

Attachments

(1 file, 1 obsolete file)

Tooltip for task without due date is not displayed and causes javascript error Steps to Reproduce: 1) Create a new task and specify start date but no due date 2) Hover mouse pointer over task item in task pane -> tooltip is displayed, OK 3) Switch to multiweek or month view 4) Enable menu option View -> Tasks in View 5) Hover mouse pointer over task item in multiweek or month view Actual Results: No tooltip is displayed. JavaScript console shows the following error: Error: occurrence.dueDate has no properties Source File: chrome://calendar/content/mouseoverPreviews.js Line: 73 Expected Results: A tooltip is displayed showing task details. Additional Information: If you specify a due date the tooltip is displayed but shows only start date. Tested with Sunbird 0.3a1+ (20060320) build.
Might be best to wait on this until after Bug 322768. Moving away from jsDate, as that bug helps us do, will make it easier to handle null-cases.
Attached patch more jsdate killing (obsolete) — — Splinter Review
This patch fixes the above error by moving mouseoverPreviews away from jsDate to calDateTime. This required also fixing getCurrentNextOrPreviousOccurrence to similarly stop using jsDate. I also removed the code referring to eventStart and eventEnd, since those variables never seemed to be used anywhere!
Assignee: nobody → jminta
Status: NEW → ASSIGNED
Attachment #221498 - Flags: first-review?(mvl)
*** Bug 333745 has been marked as a duplicate of this bug. ***
Blocks: 335882
Whiteboard: waiting for mvl review
Blocks: 335159
No longer blocks: 335159
Flags: blocking0.3+
Whiteboard: waiting for mvl review → [waiting for mvl review]
Comment on attachment 221498 [details] [diff] [review] more jsdate killing From a quick test with this patch: The tooltips work nice with different kinds of normal events/tasks. The only minor issue I saw was with a single-all-day event, where the tooltip was like "03.08.2006 - "
Attached patch more jsdate killing v2 — — Splinter Review
Patch updated to include a fix for ssitter's testing comment.
Attachment #221498 - Attachment is obsolete: true
Attachment #232782 - Flags: first-review?(mvl)
Attachment #221498 - Flags: first-review?(mvl)
Comment on attachment 232782 [details] [diff] [review] more jsdate killing v2 r=mvl
Attachment #232782 - Flags: first-review?(mvl) → first-review+
Whiteboard: [waiting for mvl review] → [patch in hand]
Whiteboard: [patch in hand] → [checkin needed]
Patch checked in.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Whiteboard: [checkin needed]
Verified fixed using Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20060828 Calendar/0.3a2+
VERIFIED with Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9a1) Gecko/20060901 Calendar/0.3a2+
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: