Bug #320185 --> It's impossible to delete or detach attachment via File Menu
Patch by mkmelin+bugzilla@cc.hut.fi r/sr=mscott git-svn-id: svn://10.0.0.236/trunk@186875 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
5f73eafc54
commit
285e0411c1
@ -1486,8 +1486,8 @@ function addAttachmentToPopup(popup, attachment, attachmentIndex)
|
||||
openpopup.appendChild(menuseparator);
|
||||
|
||||
menuitementry = document.createElement('menuitem');
|
||||
menuitementry.attachment = attachment;
|
||||
menuitementry.setAttribute('oncommand', 'this.attachment.detachAttachment()');
|
||||
menuitementry.attachment = cloneAttachment(attachment);
|
||||
menuitementry.setAttribute('oncommand', 'detachAttachment(this.attachment, true)');
|
||||
menuitementry.setAttribute('label', gDetachLabel);
|
||||
menuitementry.setAttribute('accesskey', gDetachLabelAccesskey);
|
||||
if (attachment.contentType == 'text/x-moz-deleted' || !canDetach)
|
||||
@ -1495,8 +1495,8 @@ function addAttachmentToPopup(popup, attachment, attachmentIndex)
|
||||
menuitementry = openpopup.appendChild(menuitementry);
|
||||
|
||||
menuitementry = document.createElement('menuitem');
|
||||
menuitementry.attachment = attachment;
|
||||
menuitementry.setAttribute('oncommand', 'this.attachment.deleteAttachment()');
|
||||
menuitementry.attachment = cloneAttachment(attachment);
|
||||
menuitementry.setAttribute('oncommand', 'detachAttachment(this.attachment, false)');
|
||||
menuitementry.setAttribute('label', gDeleteLabel);
|
||||
menuitementry.setAttribute('accesskey', gDeleteLabelAccesskey);
|
||||
if (attachment.contentType == 'text/x-moz-deleted' || !canDetach)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user