Closed Bug 472386 Opened 16 years ago Closed 16 years ago

Port |Bug 291341 - switching from drafts folder to saved search folder does not remove "Edit Draft..." button| to SeaMonkey

Categories

(SeaMonkey :: MailNews: Message Display, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
seamonkey2.0a3

People

(Reporter: InvisibleSmiley, Assigned: InvisibleSmiley)

Details

Attachments

(1 file, 1 obsolete file)

While going through the bugs for my next blog post I stumbled over Bug 375381 comments 5 and 8: "(And in fact, SeaMonkey does not show the Edit button in this case.)" "You don't see it in SeaMonkey because SM didn't get bug 291341's switch from a global that's only set to true in msgMail3PaneWindow.js to looking at the draftiness of the msg's folder, whether or not it's currently being displayed in that or any folder." This bug is for porting that. Guess who I'll ask for review... ;-) Patch coming up.
Attachment #355664 - Flags: review?(mnyromyr)
Comment on attachment 355664 [details] [diff] [review] Patch fixing bug 291341 and bug 375381 for SM Looks good.
Attachment #355664 - Flags: review?(mnyromyr) → review+
Attachment #355664 - Flags: superreview?(neil)
Comment on attachment 355664 [details] [diff] [review] Patch fixing bug 291341 and bug 375381 for SM [I don't see anything relevant to bug 375381 in this patch.] >+ var msgHdr; >+ try >+ { >+ msgHdr = gDBView.hdrForFirstSelectedMessage; >+ } >+ catch (ex) >+ { >+ return; >+ } >+ const nsMsgFolderFlags = Components.interfaces.nsMsgFolderFlags; >+ if (IsSpecialFolder(msgHdr.folder, nsMsgFolderFlags.Drafts, true)) >+ document.getElementById("editMessageBox").collapsed = false; I would put all of the code inside the try block, thus avoiding the separate var msgHdr and return, although I'm not sure Mnyromyr would like that.
Attachment #355664 - Flags: superreview?(neil) → superreview+
> I would put all of the code inside the try block, thus avoiding the separate > var msgHdr and return, although I'm not sure Mnyromyr would like that. Fine by me...
(In reply to comment #3) > (From update of attachment 355664 [details] [diff] [review]) > [I don't see anything relevant to bug 375381 in this patch.] True. I just wanted to express that Edit Draft will also work with standalone windows in SM when this bug is fixed. > I would put all of the code inside the try block, thus avoiding the separate > var msgHdr and return Done. Re-requesting review just to be sure.
Attachment #355664 - Attachment is obsolete: true
Attachment #357691 - Flags: superreview+
Attachment #357691 - Flags: review?(mnyromyr)
Attachment #357691 - Flags: review?(mnyromyr) → review+
Keywords: checkin-needed
Attachment #357691 - Attachment description: Patch v2, sr=neil → Patch v2, sr=neil [Checkin: Comment 6]
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → seamonkey2.0a3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: