summaryrefslogtreecommitdiff
path: root/web-ui
diff options
context:
space:
mode:
Diffstat (limited to 'web-ui')
-rw-r--r--web-ui/app/js/mail_view/ui/recipients/recipient.js12
-rw-r--r--web-ui/app/scss/_mixins.scss1
2 files changed, 7 insertions, 6 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 f3db5d4e..2985a9ab 100644
--- a/web-ui/app/js/mail_view/ui/recipients/recipient.js
+++ b/web-ui/app/js/mail_view/ui/recipients/recipient.js
@@ -77,30 +77,30 @@ define(
};
this.discoverEncryption = function () {
- this.$node.addClass('discorver-encryption');
+ this.$node.addClass('discover-encryption');
var p = $.getJSON('/keys?search=' + this.attr.address).promise();
p.done(function () {
this.$node.find('.recipient-value').addClass('encrypted');
- this.$node.removeClass('discorver-encryption');
+ this.$node.removeClass('discover-encryption');
}.bind(this));
p.fail(function () {
this.$node.find('.recipient-value').addClass('not-encrypted');
- this.$node.removeClass('discorver-encryption');
+ this.$node.removeClass('discover-encryption');
}.bind(this));
};
this.editRecipient = function(evt) {
- var mailAddr = this.$node.children('input[type=hidden]').val();
+ var mailAddr = this.$node.find('input[type=hidden]').val();
// TODO: refactor the code bellow
$('#recipients-to-area').find('input.tt-input').val(mailAddr);
$('#recipients-to-area').find('input.tt-input').focus();
- // this.triger(document, events.ui.recipients:inputFieldHasCharacters);
this.destroy();
+ // TODO: fix the bug when edit recipient and click out of the input
};
this.after('initialize', function () {
this.recipientDelActions();
- this.on('dblclick', this.editRecipient);
+ this.on('click', this.editRecipient);
if (this.attr.invalidAddress){
this.sinalizeInvalid();
} else {
diff --git a/web-ui/app/scss/_mixins.scss b/web-ui/app/scss/_mixins.scss
index fe52ce1c..45b3ee2e 100644
--- a/web-ui/app/scss/_mixins.scss
+++ b/web-ui/app/scss/_mixins.scss
@@ -235,6 +235,7 @@
& span {
margin: 0px;
padding: 0px;
+ cursor: pointer;
}
margin: 3px;
padding: 5px;