From daa662d21f2beedce77f49e59e2314fabe5e300d Mon Sep 17 00:00:00 2001 From: Duda Dornelles Date: Fri, 13 Feb 2015 15:44:34 -0200 Subject: Adding color indicator to show if mail will get encrypted --- web-ui/app/js/mail_view/ui/recipients/recipient.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'web-ui/app/js/mail_view/ui/recipients/recipient.js') 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)); }; -- cgit v1.2.3