Fix wrong event selector that causes attachment uploading not working (fix #960)
parent
8fa3c78e6a
commit
3b8e863fed
|
@ -220,11 +220,7 @@ AttachmentsDirective = ($confirm) ->
|
|||
$ctrl.reorderAttachment(attachment, newIndex)
|
||||
$ctrl.saveAttachments()
|
||||
|
||||
$el.on "click", "a.add-attach", (event) ->
|
||||
event.preventDefault()
|
||||
$el.find("input.add-attach").trigger("click")
|
||||
|
||||
$el.on "change", "input.add-attach", (event) ->
|
||||
$el.on "change", ".attachments-header input", (event) ->
|
||||
files = _.toArray(event.target.files)
|
||||
return if files.length < 1
|
||||
|
||||
|
|
Loading…
Reference in New Issue