Monotone-Parent: cba2c1a4663c3def7a5d54e73def008d13226f40

Monotone-Revision: c98bd49b41703c39676ea1d0a0331edd27843230

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-12-12T23:56:01
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2007-12-12 23:56:01 +00:00
parent 3a6e07b9e2
commit 53ea57713f

View File

@@ -1,5 +1,7 @@
var contactSelectorAction = 'mailer-contacts';
var signatureLength = 0;
var attachmentCount = 0;
var MailEditor = {
addressBook: null
};
@@ -189,12 +191,13 @@ function clickedEditorAttach(sender) {
onWindowResize(null);
}
var inputs = area.getElementsByTagName("input");
var attachmentName = "attachment" + inputs.length;
var attachmentName = "attachment" + attachmentCount;
var newAttachment = createElement("input", attachmentName,
"currentAttachment", null,
{ type: "file",
name: attachmentName },
area);
attachmentCount++;
Event.observe(newAttachment, "change",
onAttachmentChange.bindAsEventListener(newAttachment));
}