Closed Bug 331485 Opened 18 years ago Closed 18 years ago

Use selected day from view as start date for new tasks in setDefaultAlarmValues()

Categories

(Calendar :: Internal Components, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: ssitter, Assigned: jminta)

Details

Attachments

(1 file)

Use selected day from view as start date for new tasks in setDefaultAlarmValues()

Follow up for bug 329855. Bug 329855 adds support for default alarm settings for new tasks in Lightning. Applying an alarm to the task requires a start date set. At the moment we use the current date and time if no start date is set. We should use the selected day from view instead. (In function setDefaultAlarmValues() in calendarUtils.js)

To achieve this we need a method in Sunbird and Lightning that gets the selected day from views. (See bug 329855 comment #3, bug 329855 comment #4 and bug 329855 comment #6.)
Attached patch create getSelectedDay() — — Splinter Review
Quick and painless. Patch implements a getSelectedDay function that returns the selected day in either Sunbird or Lightning.

insomnia sucks
Assignee: base → jminta
Status: NEW → ASSIGNED
Attachment #216292 - Flags: first-review?(mvl)
Comment on attachment 216292 [details] [diff] [review]
create getSelectedDay()

r=mvl
(We  might want to make sb and ltn use the same id's, one day)
Attachment #216292 - Flags: first-review?(mvl) → first-review+
Patch checked in.
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: