diff options
author | Giovane <giovaneliberato@gmail.com> | 2015-11-27 15:47:58 -0200 |
---|---|---|
committer | Giovane <giovaneliberato@gmail.com> | 2015-11-27 15:53:11 -0200 |
commit | 07be9f6109e3dff49775aa51f0a481b5fd524d3b (patch) | |
tree | 29e2df328027c60349d17a8f62fdd556fafceeb3 /web-ui/app/js/mail_view/ui/mail_view.js | |
parent | c1476b4b1c96996464217444e8cdf5d94d248bea (diff) |
Created a discard draft behaviour #512 w/ bwagner
If a draft was never saved before, and there wasn't
any change to save, we now discard it instead saving
and deleting it. This also lessens the calls to saveDraft
that was causing some draft duplication.
Diffstat (limited to 'web-ui/app/js/mail_view/ui/mail_view.js')
-rw-r--r-- | web-ui/app/js/mail_view/ui/mail_view.js | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/web-ui/app/js/mail_view/ui/mail_view.js b/web-ui/app/js/mail_view/ui/mail_view.js index 3c5b0ccc..01db6c4f 100644 --- a/web-ui/app/js/mail_view/ui/mail_view.js +++ b/web-ui/app/js/mail_view/ui/mail_view.js @@ -212,7 +212,6 @@ define( this.trigger(events.mail.want, {mail: this.attr.ident, caller: this}); }; - this.after('initialize', function () { this.on(this, events.mail.here, this.displayMail); this.on(this, events.mail.notFound, this.openNoMessageSelectedPane); |