From 0aeaa0cd52ca3d9b231b6600974b83ca982e5c6b Mon Sep 17 00:00:00 2001 From: "ducarroz%netscape.com" Date: Sat, 15 Jan 2000 01:38:34 +0000 Subject: [PATCH] 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 --- mailnews/compose/resources/content/MsgComposeCommands.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mailnews/compose/resources/content/MsgComposeCommands.js b/mailnews/compose/resources/content/MsgComposeCommands.js index 5b553a3c8197..896cf0d44e81 100644 --- a/mailnews/compose/resources/content/MsgComposeCommands.js +++ b/mailnews/compose/resources/content/MsgComposeCommands.js @@ -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);