Fixed issue #833 - multiplication of the attachment-field in #channels/form.
This commit is contained in:
parent
b5f3d26371
commit
e1e7f4a4a1
1 changed files with 5 additions and 0 deletions
|
@ -162,6 +162,11 @@ $(function() {
|
||||||
_this.loadCss(_this.css_location)
|
_this.loadCss(_this.css_location)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$.each(_this.options.attributes, function(index, item) {
|
||||||
|
if (item.name == 'file[]') {
|
||||||
|
_this.options.attributes.splice(index, 1);
|
||||||
|
}
|
||||||
|
})
|
||||||
if (_this.options.attachmentSupport === true || _this.options.attachmentSupport === 'true') {
|
if (_this.options.attachmentSupport === true || _this.options.attachmentSupport === 'true') {
|
||||||
var attachment = {
|
var attachment = {
|
||||||
display: 'Attachments',
|
display: 'Attachments',
|
||||||
|
|
Loading…
Reference in a new issue