Closed
Bug 285014
Opened 19 years ago
Closed 19 years ago
double-clicking on a calendar in the calendars tab does nothing
Categories
(Calendar :: Sunbird Only, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: mvl, Assigned: mvl)
Details
(Keywords: regression)
Attachments
(2 files, 1 obsolete file)
47.07 KB,
patch
|
shaver
:
first-review+
|
Details | Diff | Splinter Review |
7.29 KB,
patch
|
shaver
:
first-review+
|
Details | Diff | Splinter Review |
double-clicking on a calendar on the calendars tab should open a dialog to edit its properties. But it does nothing. (a temporary solution would be to open the wizard for it)
Assignee | ||
Comment 1•19 years ago
|
||
also, right clicking and selecting edit doesn't work. That should just do the same.
Keywords: regression
Assignee | ||
Comment 2•19 years ago
|
||
Should it be possible to change the type of a calendar? say from storage to caldav? Or is just editing the parameters like the uri and name enough? (it's easier, that's for sure)
Assignee | ||
Comment 3•19 years ago
|
||
This patch actually doesn't seem to fix doubleclick, i need to investigate that. It does fix the context menu though. Also, it actually makes the list live, so that changes are made visible.
I would say that you can change neither URI nor type for an existing calendar. Name, highlight colour, whatever other prefs make sense for that type.
Comment on attachment 181617 [details] [diff] [review] patch v1 >+ content/calendar/calendarManagment.js (content/calendarManagment.js) Here and elsewhere: you probably want to name it calendarManag_e_ment.js. > function debug(text) > { >- if(gDebugEnabled) >- dump(text + "\n"); >+// if(gDebugEnabled) >+// dump(text + "\n"); > } Didja figure out what you wanted to do here? (Fix gDebugEnabled, just remove those lines, define a new empty debug function if gDebugEnabled, etc.) > >- updateColors(); >+ initCalendarManager(); >+ >+// updateColors(); I'd say to just remove that line, instead of commenting it out, but that's somewhat just personal preference. >+<!-- > <listhead> >- <listheader flex="1" crop="end" label="&calendar.calendarlistbox.label;"/> > <listheader/> >+ <listheader/> >+ <listheader flex="1" crop="end" label="&calendar.calendarlistbox.label;"/> > </listhead> >+--> Temporary commenting, or more deletion-candidate? >+function getDisplayComposite() >+{ >+ if (!gDisplayComposite) { >+ gDisplayComposite = Components.classes["@mozilla.org/calendar/calendar;1?type=composite"] >+ .createInstance(Components.interfaces.calICompositeCalendar); >+ var calMgr = getCalendarManager(); >+ var calList = calMgr.getCalendars({}); >+ for (i in calList) { >+ gDisplayComposite.addCalendar(calList[i]); >+ } >+ } >+ return gDisplayComposite; > } Mmmm, is the right thing for the composite to really return all calendars known to the manager? If this is intended to be shared by Lightning, I don't think it is, but I don't think that's what Sunbird wants either; how do we honour the checking of items in the list, etc.? >@@ -170,104 +162,20 @@ function CalendarWindow( ) > calendarWindow.currentView.refreshEvents(); > }, > onDeleteItem: function(aDeletedItem) { > if (!this.mInBatch) > calendarWindow.currentView.refreshEvents(); > }, > onAlarm: function(aAlarmItem) {}, > onError: function(aMessage) {} > } >+ var ccalendar = getDisplayComposite(); >+ ccalendar.addObserver(calendarObserver, ccalendar.ITEM_FILTER_TYPE_ALL); Since some recent commit of Vlad's, we don't take a filter parameter on addObserver. (Not quite sure why, other than that it was likely not correctly implemented anywhere.) Fix the calendarManagement.js naming and the addObserver call, and this can go in. You probably want to tidy the comment/delete stuff too, I guess.
Attachment #181617 -
Flags: first-review?(pavlov) → first-review+
Assignee | ||
Comment 6•19 years ago
|
||
(In reply to comment #5) > Mmmm, is the right thing for the composite to really return all > calendars known to the manager? No, it isn't the right thing to do, but it works for now. I need to to think of a place where to store the current list of selected calendars, without having to do the housekeeping twice. I fixed the comments and naming, and checked in. Leaving this bug open for now to fix the actual issue from the summary :)
Assignee | ||
Comment 7•19 years ago
|
||
I found out that in sb0.2 double clicking also does nothing, so i guess the original summary was wrong. Anyway, this patch makes the event and todo lists and the views observe changes to the calendar list, so that they will be redrawn when the users (de)selects a calendar.
Attachment #182061 -
Flags: first-review?(shaver)
Assignee | ||
Comment 8•19 years ago
|
||
additional patch, to open the wizard when no calendar is defined, like on first startup
Assignee | ||
Updated•19 years ago
|
Attachment #182491 -
Flags: first-review?(pavlov)
Comment on attachment 182061 [details] [diff] [review] update views and trees (checked in) r=shaver
Attachment #182061 -
Flags: first-review?(shaver) → first-review+
Assignee | ||
Updated•19 years ago
|
Attachment #182061 -
Attachment description: update views and trees → update views and trees (checked in)
Assignee | ||
Comment 10•19 years ago
|
||
Comment on attachment 182491 [details] [diff] [review] open wizard when no calendars are defined this patch i no longer needed, now bug 296194 is fixed.
Attachment #182491 -
Attachment is obsolete: true
Attachment #182491 -
Flags: first-review?(pavlov)
Assignee | ||
Comment 11•19 years ago
|
||
I don't think there is anything left to be done here. If there is, we can open new bugs.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Comment 12•18 years ago
|
||
The bugspam monkeys have been set free and are feeding on Calendar :: Sunbird Only. Be afraid for your sanity!
QA Contact: gurganbl → sunbird
You need to log in
before you can comment on or make changes to this bug.
Description
•