Closed
Bug 300250
Opened 19 years ago
Closed 19 years ago
Clipboard functions (cut, copy, paste) don't work
Categories
(Calendar :: Sunbird Only, defect)
Calendar
Sunbird Only
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: jminta, Assigned: jminta)
References
Details
Attachments
(2 files)
|
17.31 KB,
patch
|
Details | Diff | Splinter Review | |
|
13.74 KB,
patch
|
mvl
:
first-review+
|
Details | Diff | Splinter Review |
The clipboard functions don't work at all. Cut/Copy is still using an export function that asks for event.start, etc instead of event.startDate. Paste is still trying to use parseIcalEvents which was replaced by parseIcal. However, unlike parseIcalEvents, parseIcal doesn't return an event array. This can be worked around, but it might be worth changing, since clipboard needs to alter the events before they are added to the calendar. One question comes to mind: When pasting multiple events, should they all be added to the selected day or should the earliest be added to the selected day, and the time difference between the events preserved? Or give the user the option?
Re: pasting times of single and multiple events See patch and comments at bug 199422 comment 17.
| Assignee | ||
Comment 2•19 years ago
|
||
FYI on other programs: Outlook keeps the time difference between events when pasting. Lotus Notes keeps the times of events, but places them all on the selected day. Taking this annoying sucker. It's mostly done in my tree. Patch tomorrow probably.
Status: NEW → ASSIGNED
| Assignee | ||
Comment 3•19 years ago
|
||
The whitespacing in the file was pretty bad, so this includes fixes to most of it as well as getting the clipboard functions back working.
| Assignee | ||
Updated•19 years ago
|
Assignee: mostafah → jminta
| Assignee | ||
Comment 4•19 years ago
|
||
Same as above but -w to hopefully help with the readability.
Attachment #192189 -
Flags: first-review?(mvl)
Comment 5•19 years ago
|
||
Comment on attachment 192189 [details] [diff] [review] patch v1 -w >+ var icssrv = Components.classes["@mozilla.org/calendar/ics-service;1"] >+ .getService(Components.interfaces.calIICSService); Nit: Align the dots. (Here, and in a few other places) >+ if (item.startDate) >+ date = item.startDate.clone(); >+ if (item.entryDate) >+ date = item.entryDate.clone(); >+ else if (item.dueDate) >+ date = item.dueDate.clone(); Are you sure the second if shouldn't be else if? Also, add a newline to seperate this block from the next. r=mvl with those.
Attachment #192189 -
Flags: first-review?(mvl) → first-review+
| Assignee | ||
Comment 6•19 years ago
|
||
Patch checked in.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•