diff options
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.js | 6 |
1 files changed, 6 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 5454ab0a..442f1c00 100644 --- a/web-ui/app/js/mail_view/ui/send_button.js +++ b/web-ui/app/js/mail_view/ui/send_button.js @@ -84,6 +84,11 @@ define([ }; + this.forceEnableButton = function () { + this.enableButton(); + this.$node.html(viewHelper.i18n('send-button')); + } + this.after('initialize', function () { this.attr.recipients = {}; this.attr.inputHasMail = {}; @@ -97,6 +102,7 @@ define([ this.on(document, events.dispatchers.rightPane.clear, this.teardown); this.on(document, events.ui.sendbutton.enable, this.enableButton); + this.on(document, events.mail.send_failed, this.forceEnableButton); this.disableButton(); }); |