From 72e332e2969d4eb36c9cd64336c1f1d89b6185f1 Mon Sep 17 00:00:00 2001 From: Giovane Date: Fri, 23 Oct 2015 12:19:19 -0200 Subject: Add invalid address sinalization on tokens #492 --- web-ui/app/js/mail_view/ui/recipients/recipient.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (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 487ca9a0..f3db5d4e 100644 --- a/web-ui/app/js/mail_view/ui/recipients/recipient.js +++ b/web-ui/app/js/mail_view/ui/recipients/recipient.js @@ -72,6 +72,10 @@ define( return this.$node.find('.recipient-value').hasClass('selected'); }; + this.sinalizeInvalid = function () { + this.$node.find('.recipient-value>span').addClass('invalid-format'); + }; + this.discoverEncryption = function () { this.$node.addClass('discorver-encryption'); var p = $.getJSON('/keys?search=' + this.attr.address).promise(); @@ -96,8 +100,12 @@ define( this.after('initialize', function () { this.recipientDelActions(); - this.discoverEncryption(); this.on('dblclick', this.editRecipient); + if (this.attr.invalidAddress){ + this.sinalizeInvalid(); + } else { + this.discoverEncryption(); + } }); } } -- cgit v1.2.3