Closed
Bug 403953
Opened 17 years ago
Closed 17 years ago
Enable the Address Book property dialogs to be address book type specific without nasty hacks.
Categories
(MailNews Core :: Address Book, defect)
MailNews Core
Address Book
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: standard8, Assigned: standard8)
Details
Attachments
(1 file, 2 obsolete files)
9.24 KB,
patch
|
neil
:
review+
standard8
:
superreview+
|
Details | Diff | Splinter Review |
Currently if you're not an LDAP directory, then you have to use the standard "rename only" dialog for your address book properties (or do some really horrible overloading).
The patch I'm attaching provides a read only attribute in nsIAbDirectory (propertiesChromeURI) that returns the URI for the purpose of displaying the dialog. This should help future dev.
I was going to do this attribute/function so that it would display the dialog in the c++. Then I found out that to do it would require many more lines than doing it in the js - so I opted for the simpler solution.
I'm not fussed about the new directory functions at the moment, we'd have to have a way of getting the properties from the factory, probably via nsIAddressBook, and we're not really set up for that at the moment. Additionally, its a lot easier to provide an overlay which calls the required new function than it is for the edit/properties functions.
Patch does the required changes for TB & SM.
Attachment #288882 -
Flags: superreview?(bienvenu)
Attachment #288882 -
Flags: review?(neil)
Comment 1•17 years ago
|
||
Comment on attachment 288882 [details] [diff] [review]
The fix
this looks OK to me, as long as Neil likes it :-)
Attachment #288882 -
Flags: superreview?(bienvenu) → superreview+
Comment 2•17 years ago
|
||
Comment on attachment 288882 [details] [diff] [review]
The fix
You never actually override the property for LDAP address books so they can't be edited from the main addressbook window with this patch...
Attachment #288882 -
Flags: review?(neil) → review-
Assignee | ||
Comment 3•17 years ago
|
||
(In reply to comment #2)
> (From update of attachment 288882 [details] [diff] [review])
> You never actually override the property for LDAP address books so they can't
> be edited from the main addressbook window with this patch...
Well I do in my local build ;-) Sorry, obviously missed that file from the patch. I'll attach a new one later.
Assignee | ||
Comment 4•17 years ago
|
||
Corrected patch with the LDAP override this time...
Attachment #288882 -
Attachment is obsolete: true
Attachment #288992 -
Flags: superreview+
Attachment #288992 -
Flags: review?(neil)
Assignee | ||
Comment 5•17 years ago
|
||
Lets see if I can get it right this time...
Attachment #288992 -
Attachment is obsolete: true
Attachment #288994 -
Flags: superreview+
Attachment #288994 -
Flags: review?(neil)
Attachment #288992 -
Flags: review?(neil)
Updated•17 years ago
|
Attachment #288994 -
Flags: review?(neil) → review+
Assignee | ||
Comment 6•17 years ago
|
||
Patch checked in. Fixed.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Comment 7•17 years ago
|
||
Mark, FWIW it looks like you transposed the bug numbers in the checkin description
Updated•17 years ago
|
Product: Core → MailNews Core
You need to log in
before you can comment on or make changes to this bug.
Description
•