summaryrefslogtreecommitdiff
path: root/web-ui/app/js/mail_view/ui/recipients/recipient.js
diff options
context:
space:
mode:
authorDuda Dornelles <ddornell@thoughtworks.com>2015-02-13 15:44:34 -0200
committerDuda Dornelles <ddornell@thoughtworks.com>2015-02-13 15:45:34 -0200
commitdaa662d21f2beedce77f49e59e2314fabe5e300d (patch)
tree12de99688b6b5a64d82b93ccef2ec03c52c62805 /web-ui/app/js/mail_view/ui/recipients/recipient.js
parent04561f250d020adeb9da158400e077b8f5ea0d88 (diff)
Adding color indicator to show if mail will get encrypted
Diffstat (limited to 'web-ui/app/js/mail_view/ui/recipients/recipient.js')
-rw-r--r--web-ui/app/js/mail_view/ui/recipients/recipient.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/web-ui/app/js/mail_view/ui/recipients/recipient.js b/web-ui/app/js/mail_view/ui/recipients/recipient.js
index 603447d6..f8909fe1 100644
--- a/web-ui/app/js/mail_view/ui/recipients/recipient.js
+++ b/web-ui/app/js/mail_view/ui/recipients/recipient.js
@@ -53,11 +53,11 @@ define(
this.$node.addClass('discorver-encryption');
var p = $.getJSON('/keys?search=' + this.attr.address).promise();
p.done(function () {
- this.$node.addClass('encrypted');
+ this.$node.find('.recipient-value').addClass('encrypted');
this.$node.removeClass('discorver-encryption');
}.bind(this));
- p.fail(function () {
- this.$node.addClass('not-encrypted');
+ p.fail(function () {
+ this.$node.find('.recipient-value').addClass('not-encrypted');
this.$node.removeClass('discorver-encryption');
}.bind(this));
};