diff options
-rw-r--r-- | web-ui/app/js/mail_view/ui/attachment_list.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/web-ui/app/js/mail_view/ui/attachment_list.js b/web-ui/app/js/mail_view/ui/attachment_list.js index 936b2e81..294a21a2 100644 --- a/web-ui/app/js/mail_view/ui/attachment_list.js +++ b/web-ui/app/js/mail_view/ui/attachment_list.js @@ -127,6 +127,10 @@ define( }); }; + this.detachUploadAbort = function() { + this.off(this.select('attachmentUploadItemAbort'), 'click'); + }; + this.addJqueryFileUploadConfig = function() { var self = this; @@ -146,10 +150,12 @@ define( dataType: 'json', done: function (e, response) { self.hideUploadProgressBar(); + self.detachUploadAbort(); self.trigger(document, events.mail.uploadedAttachment, response.result); }, fail: function(e, data){ self.hideUploadProgressBar(); + self.detachUploadAbort(); self.trigger(document, events.mail.failedUploadAttachment); }, progressall: function (e, data) { |