Closed Bug 197666 Opened 23 years ago Closed 22 years ago

<ab[Edit|New]CardDialog.xul>: Convert <window class="dialog"> to <dialog>

Categories

(SeaMonkey :: MailNews: Message Display, defect)

defect
Not set
trivial

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: Sebastian, Assigned: Sebastian)

References

Details

Attachments

(1 file, 2 obsolete files)

By converting abNewCardDialog and abEditCardDialog from <window...> to <dialog...> we save some hand rolled functions (like the keyhandling for VK_ENTER VK_ESCAPE) and remove the dependency to the global dialogOverlay.xul. Furthermore, the <OK> <Cancel> buttons will show up in the right order if one does the "sidebar on the right side"-customization trick (http://mozilla.org/unix/customizing.html). They are reversed now...
Attached patch convert to <dialog> (obsolete) — Splinter Review
One last question. I included the global.css in both files and left the inclusion of messenger/skin/dialogs.css in there: <?xml-stylesheet href="chrome://global/skin/global.css" type="text/css"?> <?xml-stylesheet href="chrome://messenger/skin/dialogs.css" type="text/css"?> However I could take both out (using modern theme) without any obvious regressions. Are they both needed or should they be taken out? (If yes, I will submit a new patch)
Attachment #117383 - Flags: review?(neil)
Blocks: 197315
forgot to assign to me...
Assignee: sspitzer → Sebastian
Attachment #117383 - Attachment is obsolete: true
Attachment #117395 - Flags: review?(neil)
Comment on attachment 117395 [details] [diff] [review] buttons are centered ("buttonpack=center") now again... -<?xml-stylesheet href="chrome://messenger/skin/dialogs.css" type="text/css"?> - and +<?xml-stylesheet href="chrome://global/skin/global.css" type="text/css"?> <?xml-stylesheet href="chrome://messenger/skin/dialogs.css" type="text/css"?> I don't think you meant these.
Attachment #117395 - Flags: review?(neil) → review-
To clarify: you should have exactly one stylesheet if possible; I don't have a problem with using global.css but do check dialog.css first in case there are some specific rules for that dialog.
Attachment #117577 - Flags: review?(neil)
Attachment #117577 - Flags: review?(neil) → review+
Attachment #117577 - Flags: superreview?(sspitzer)
Comment on attachment 117383 [details] [diff] [review] convert to <dialog> Cancelling review on obsolete patch.
Attachment #117383 - Flags: review?(neil)
Comment on attachment 117577 [details] [diff] [review] now only using global.css (dialogs.css is unneccessary in this case as far as I can see) I just tested this patch with the current trunk. It still applies und works.
Attachment #117577 - Flags: superreview?(sspitzer) → superreview?(bienvenu)
Attachment #117577 - Flags: superreview?(bienvenu) → superreview+
Checking in addrbook/resources/content/abCardOverlay.js; /cvsroot/mozilla/mailnews/addrbook/resources/content/abCardOverlay.js,v <-- ab CardOverlay.js new revision: 1.46; previous revision: 1.45 done Checking in addrbook/resources/content/abEditCardDialog.xul; /cvsroot/mozilla/mailnews/addrbook/resources/content/abEditCardDialog.xul,v <-- abEditCardDialog.xul new revision: 1.17; previous revision: 1.16 done Checking in addrbook/resources/content/abNewCardDialog.xul; /cvsroot/mozilla/mailnews/addrbook/resources/content/abNewCardDialog.xul,v <-- abNewCardDialog.xul new revision: 1.31; previous revision: 1.30 done
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Severity: minor → trivial
Summary: Simplify abNew[Edit]CardDialog → ab[Edit|New]CardDialog.xul: Convert <window class="dialog"> to <dialog>
Summary: ab[Edit|New]CardDialog.xul: Convert <window class="dialog"> to <dialog> → <ab[Edit|New]CardDialog.xul>: Convert <window class="dialog"> to <dialog>
*** Bug 187361 has been marked as a duplicate of this bug. ***
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: