summaryrefslogtreecommitdiff
path: root/web-ui/app/js/mail_view
diff options
context:
space:
mode:
authorGislene Pereira <gislene01@gmail.com>2016-02-19 14:56:09 -0300
committerNavaL <ayoyo@thoughtworks.com>2016-02-19 15:40:54 -0300
commit940df3e2e12ff862c9e190fdfcd9a0278164a318 (patch)
tree327c126f1ba7251854006e43380e3eba6122d0d1 /web-ui/app/js/mail_view
parenta6202acbb44162e867f107a9cf262d95a41e4347 (diff)
Close the compose/inline box right after user clicks Send button and
show message later when the email is sent or not. The Growl will be yellow if success and red if the email failed to be sent. Issue #609
Diffstat (limited to 'web-ui/app/js/mail_view')
-rw-r--r--web-ui/app/js/mail_view/data/mail_sender.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/web-ui/app/js/mail_view/data/mail_sender.js b/web-ui/app/js/mail_view/data/mail_sender.js
index 0d11c636..8bb01f70 100644
--- a/web-ui/app/js/mail_view/data/mail_sender.js
+++ b/web-ui/app/js/mail_view/data/mail_sender.js
@@ -36,7 +36,7 @@ define(
function failureSendingMail(on) {
return function(result) {
- on.trigger(document, events.mail.send_failed);
+ on.trigger(document, events.mail.send_failed, result);
};
}
@@ -51,6 +51,7 @@ define(
});
this.sendMail = function(event, data) {
+ this.trigger(events.dispatchers.rightPane.openNoMessageSelected);
monitoredAjax.call(_, this, this.attr.mailsResource, {
type: 'POST',
dataType: 'json',