mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-09 08:48:07 +00:00
Fix for bug 23109 & 23331. Call new api msgCompose.AttachmentPrettyName to convert an attachment url to something nicer to display in the attachment pane. R=jefft
This commit is contained in:
parent
d5354ef4c7
commit
0aeaa0cd52
@ -656,7 +656,9 @@ function AddAttachment(attachment)
|
||||
var row = document.createElement("treerow");
|
||||
var cell = document.createElement("treecell");
|
||||
|
||||
cell.setAttribute("value", unescape(attachment)); //use for display only
|
||||
if (msgCompose)
|
||||
prettyName = msgCompose.AttachmentPrettyName(attachment);
|
||||
cell.setAttribute("value", prettyName); //use for display only
|
||||
cell.setAttribute("attachment", attachment); //full url stored here
|
||||
row.appendChild(cell);
|
||||
item.appendChild(row);
|
||||
|
Loading…
x
Reference in New Issue
Block a user