Skip to content

Commit

Permalink
Bug: 14329 Ensure the file input node is clear.
Browse files Browse the repository at this point in the history
If removing a attachment, if we don't manually clear the
input node on some browsers, it will be impossible to attach
the same file again since the browser thinks it is already
attached.
  • Loading branch information
mrubinsk committed Apr 19, 2016
1 parent 59b502b commit 2f2a6c1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions imp/js/compose-dimp.js
Expand Up @@ -885,6 +885,8 @@ var DimpCompose = {
afterFinish: function() {
this.removeAttachRow(elt);
this.initAttachList();
$('upload').removeAttribute('value');
$('upload').replace($('upload').cloneNode(true));
}.bind(this),
duration: 0.4
});
Expand Down

0 comments on commit 2f2a6c1

Please sign in to comment.