diff options
author | rafael lisboa <rafaelzlisboa@gmail.com> | 2015-02-20 15:08:24 -0200 |
---|---|---|
committer | rafael lisboa <rafaelzlisboa@gmail.com> | 2015-02-20 15:09:10 -0200 |
commit | 26be3c59b174eb9f1a6f73c67489738c7517ce8c (patch) | |
tree | e8a10048751f57c87121ffd00a31d1df221969c9 /web-ui/app/js/services/model | |
parent | 2bd46a719b947b0839f47fd9e4bf5517f396fd29 (diff) |
Open draft e-mails in edit view when shown in the "all" tab
Diffstat (limited to 'web-ui/app/js/services/model')
-rw-r--r-- | web-ui/app/js/services/model/mail.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/web-ui/app/js/services/model/mail.js b/web-ui/app/js/services/model/mail.js index 43ab4b86..34cba610 100644 --- a/web-ui/app/js/services/model/mail.js +++ b/web-ui/app/js/services/model/mail.js @@ -22,15 +22,15 @@ define(['helpers/contenttype'], var asMail = (function () { function isSentMail() { - return this.mailbox === 'SENT'; + return _.has(this, 'mailbox') && this.mailbox.toUpperCase() === 'SENT'; } function isDraftMail() { - return this.mailbox === 'DRAFTS'; + return _.has(this, 'mailbox') && this.mailbox.toUpperCase() === 'DRAFTS'; } function isInTrash() { - return this.mailbox && this.mailbox.toLowerCase() === 'trash'; + return _.has(this, 'mailbox') && this.mailbox.toUpperCase() === 'TRASH'; } function setDraftReplyFor(ident) { |