summaryrefslogtreecommitdiff
path: root/web-ui/app/js/mail_view/ui/send_button.js
diff options
context:
space:
mode:
authorFelix Hammerl <fhammerl@thoughtworks.com>2016-02-03 18:48:13 +0100
committerFelix Hammerl <fhammerl@thoughtworks.com>2016-02-03 18:54:33 +0100
commit511d621593a7c157f9f08994da1485a518f95796 (patch)
treeea31b5c4d7d6de265c79a8cb60d054734ed2bc24 /web-ui/app/js/mail_view/ui/send_button.js
parent761f429873cb453f244eaf4cad7848e78f9f78c9 (diff)
Issue #552 - Add upload abort
Cancels an upload and restores the user interface to ready-for-upload state
Diffstat (limited to 'web-ui/app/js/mail_view/ui/send_button.js')
-rw-r--r--web-ui/app/js/mail_view/ui/send_button.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/web-ui/app/js/mail_view/ui/send_button.js b/web-ui/app/js/mail_view/ui/send_button.js
index b1f35906..c4cf86dc 100644
--- a/web-ui/app/js/mail_view/ui/send_button.js
+++ b/web-ui/app/js/mail_view/ui/send_button.js
@@ -116,6 +116,7 @@ define([
this.on(document, events.mail.uploadingAttachment, this.uploadInProgress);
this.on(document, events.mail.uploadedAttachment, this.uploadFinished);
+ this.on(document, events.mail.failedUploadAttachment, this.uploadFinished);
this.on(document, events.dispatchers.rightPane.clear, this.teardown);
this.on(document, events.ui.sendbutton.enable, this.resetButton);