Fix missing DOM ID.
authorMichael M Slusarz <slusarz@curecanti.org>
Mon, 13 Apr 2009 20:40:37 +0000 (14:40 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Mon, 13 Apr 2009 20:45:09 +0000 (14:45 -0600)
imp/js/src/compose.js

index 6fbb430..d813676 100644 (file)
@@ -239,7 +239,7 @@ var ImpCompose = {
             if (lastRow) {
                 td = new Element('TD', { align: 'left' }).insert(new Element('STRONG').insert(IMP.text.compose_file + ' ' + (usedFields + 1) + ':')).insert('&nbsp;')
 
-                td.insert(new Element('INPUT', { type: 'file', name: 'upload_' + (usedFields + 1), size: 25 }));
+                td.insert(new Element('INPUT', { type: 'file', id: 'upload_' + (usedFields + 1), name: 'upload_' + (usedFields + 1), size: 25 }));
 
                 newRow = new Element('TR', { id: 'attachment_row_' + (usedFields + 1) }).insert(td);