summaryrefslogtreecommitdiff
path: root/web-ui/app/js/mail_view
diff options
context:
space:
mode:
authorBruno Wagner <bwagner@thoughtworks.com>2014-10-07 15:01:42 +0200
committerBruno Wagner <bwagner@thoughtworks.com>2014-10-07 15:01:54 +0200
commit6299531f4c8f7daa1b4afab45d0439f635b03982 (patch)
tree92b2876e732731e5219e50ef7719c72ec2cb478a /web-ui/app/js/mail_view
parent88abefd3e62fb65a08dde62a7d7e4ce1fa22f563 (diff)
Fixed jshint errors
Diffstat (limited to 'web-ui/app/js/mail_view')
-rw-r--r--web-ui/app/js/mail_view/ui/mail_view.js6
-rw-r--r--web-ui/app/js/mail_view/ui/recipients/recipients_iterator.js4
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();
}