@@ -89,7 +89,7 function addFileField() { | |||||
89 | var fields = $('attachments_fields'); |
|
89 | var fields = $('attachments_fields'); | |
90 | if (fields.childElements().length >= 10) return false; |
|
90 | if (fields.childElements().length >= 10) return false; | |
91 | fileFieldCount++; |
|
91 | fileFieldCount++; | |
92 |
var s = |
|
92 | var s = new Element('span'); | |
93 | s.update(fields.down('span').innerHTML); |
|
93 | s.update(fields.down('span').innerHTML); | |
94 | s.down('input.file').name = "attachments[" + fileFieldCount + "][file]"; |
|
94 | s.down('input.file').name = "attachments[" + fileFieldCount + "][file]"; | |
95 | s.down('input.description').name = "attachments[" + fileFieldCount + "][description]"; |
|
95 | s.down('input.description').name = "attachments[" + fileFieldCount + "][description]"; |
General Comments 0
You need to be logged in to leave comments.
Login now