summaryrefslogtreecommitdiff
path: root/web-ui/app/js/mail_view/ui/recipients/recipients.js
diff options
context:
space:
mode:
Diffstat (limited to 'web-ui/app/js/mail_view/ui/recipients/recipients.js')
-rw-r--r--web-ui/app/js/mail_view/ui/recipients/recipients.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/web-ui/app/js/mail_view/ui/recipients/recipients.js b/web-ui/app/js/mail_view/ui/recipients/recipients.js
index 3d756bd5..2caa8d14 100644
--- a/web-ui/app/js/mail_view/ui/recipients/recipients.js
+++ b/web-ui/app/js/mail_view/ui/recipients/recipients.js
@@ -32,7 +32,8 @@ define(
function recipients() {
this.defaultAttrs({
- navigationHandler: '.recipients-navigation-handler'
+ navigationHandler: '.recipients-navigation-handler',
+ recipientsList: '.recipients-list'
});
function getAddresses(recipients) {
@@ -85,7 +86,7 @@ define(
};
this.addRecipient = function(recipient) {
- var newRecipient = Recipient.prototype.renderAndPrepend(this.$node, recipient);
+ var newRecipient = Recipient.prototype.renderAndPrepend(this.$node.find(this.attr.recipientsList), recipient);
this.attr.recipients.push(newRecipient);
};