diff options
Diffstat (limited to 'web-ui/app/js/mail_view')
-rw-r--r-- | web-ui/app/js/mail_view/ui/mail_view.js | 6 | ||||
-rw-r--r-- | web-ui/app/js/mail_view/ui/recipients/recipients_iterator.js | 4 |
2 files changed, 7 insertions, 3 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 f8fb9318..bda0c4a9 100644 --- a/web-ui/app/js/mail_view/ui/mail_view.js +++ b/web-ui/app/js/mail_view/ui/mail_view.js @@ -54,12 +54,14 @@ define( var date = new Date(data.mail.header.date); data.mail.header.formattedDate = viewHelpers.getFormattedDate(date); + var signed, encrypted; + data.mail.security_casing = data.mail.security_casing || {}; if(features.isEnabled('signatureStatus')) { - var signed = this.checkSigned(data.mail); + signed = this.checkSigned(data.mail); } if(features.isEnabled('encryptionStatus')) { - var encrypted = this.checkEncrypted(data.mail); + encrypted = this.checkEncrypted(data.mail); } this.$node.html(templates.mails.fullView({ diff --git a/web-ui/app/js/mail_view/ui/recipients/recipients_iterator.js b/web-ui/app/js/mail_view/ui/recipients/recipients_iterator.js index 19f8dea9..5253d915 100644 --- a/web-ui/app/js/mail_view/ui/recipients/recipients_iterator.js +++ b/web-ui/app/js/mail_view/ui/recipients/recipients_iterator.js @@ -14,6 +14,8 @@ * You should have received a copy of the GNU Affero General Public License * along with Pixelated. If not, see <http://www.gnu.org/licenses/>. */ +/*global _ */ +'use strict'; define(['helpers/iterator'], function (Iterator) { return RecipientsIterator; @@ -47,7 +49,7 @@ define(['helpers/iterator'], function (Iterator) { this.iterator.removeCurrent().destroy(); if (this.iterator.hasElements()) { - this.iterator.current().select() + this.iterator.current().select(); } else { this.input.focus(); } |