diff options
author | Jefferson Stachelski <jstachel@thoughtworks.com> | 2015-10-23 12:09:17 -0200 |
---|---|---|
committer | Jefferson Stachelski <jstachel@thoughtworks.com> | 2015-10-23 12:09:17 -0200 |
commit | 066efbfb6a4938895348adf90e910f55c91f3260 (patch) | |
tree | 744b6040fb6b271d762a1567b40b8d3304b1b3a7 /web-ui/app/js/mail_view/ui/recipients/recipient.js | |
parent | 6d49949a73cf4757b4f616ee9398863d8ba62988 (diff) |
Issue #493 - Its possible edit the recipients
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.js | 10 |
1 files changed, 10 insertions, 0 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 f4e6e9a6..5b0535fb 100644 --- a/web-ui/app/js/mail_view/ui/recipients/recipient.js +++ b/web-ui/app/js/mail_view/ui/recipients/recipient.js @@ -85,9 +85,19 @@ define( }.bind(this)); }; + this.editRecipient = function(evt) { + var mailAddr = this.$node.children('input[type=hidden]').val(); + // TODO: refator 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(); + }; + this.after('initialize', function () { this.recipientDelActions(); this.discoverEncryption(); + this.on('dblclick', this.editRecipient); }); } } |