diff options
| author | Christophe Simonis <chs@odoo.com> | 2018-07-13 17:12:07 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2018-07-13 17:12:07 +0200 |
| commit | 8285630ad2689eb8322534d02bded4d1a7ef8e99 (patch) | |
| tree | 8e7da60c2932fad4dadad27948b18bf05f4d2a8b /addons/mail/static/src | |
| parent | af4df80283f7951651f6f1af5d7761a74f34293c (diff) | |
| parent | 609491ad0e791a554e350590edd9d83dd0f49a12 (diff) | |
[MERGE] forward port branch saas-11.3 up to 609491ad0e7
Diffstat (limited to 'addons/mail/static/src')
| -rw-r--r-- | addons/mail/static/src/js/composer.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/mail/static/src/js/composer.js b/addons/mail/static/src/js/composer.js index f89c0382554..64cc48285e5 100644 --- a/addons/mail/static/src/js/composer.js +++ b/addons/mail/static/src/js/composer.js @@ -655,7 +655,7 @@ var BasicComposer = Widget.extend({ on_attachment_delete: function(event){ event.stopPropagation(); var self = this; - var attachment_id = $(event.target).data("id"); + var attachment_id = $(event.currentTarget).data("id"); if (attachment_id) { var attachments = []; _.each(this.get('attachment_ids'), function(attachment){ @@ -666,6 +666,7 @@ var BasicComposer = Widget.extend({ } }); this.set('attachment_ids', attachments); + this.$('input.o_input_file').val(''); } }, do_check_attachment_upload: function () { |
