diff options
author | Lisa Junger <ljunger@thoughtworks.com> | 2014-12-08 16:23:25 +0100 |
---|---|---|
committer | Lisa Junger <ljunger@thoughtworks.com> | 2014-12-09 15:47:55 +0100 |
commit | be5540272d6e39c49fbcad87945211462dcc780d (patch) | |
tree | e22bc1daa5dceeb5f16b32fe7c5d788a49242f3d /web-ui/app/js/mail_view/ui/send_button.js | |
parent | 695b5a035be7c5ceeba289f1613b5e0e5b6d2aba (diff) |
issue #172 adopted behavior of send button to monitored ajax calls.
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(); }); |