summaryrefslogtreecommitdiff
path: root/web-ui/app/js/mail_view/ui
diff options
context:
space:
mode:
Diffstat (limited to 'web-ui/app/js/mail_view/ui')
-rw-r--r--web-ui/app/js/mail_view/ui/recipients/recipients_input.js18
1 files changed, 9 insertions, 9 deletions
diff --git a/web-ui/app/js/mail_view/ui/recipients/recipients_input.js b/web-ui/app/js/mail_view/ui/recipients/recipients_input.js
index a74e871e..e9211d85 100644
--- a/web-ui/app/js/mail_view/ui/recipients/recipients_input.js
+++ b/web-ui/app/js/mail_view/ui/recipients/recipients_input.js
@@ -71,7 +71,7 @@ define([
filter: extractContactNames
}
});
- if(features.isEnabled('contacts')) {
+ if (features.isEnabled('contacts')) {
emailCompleter.initialize();
}
return emailCompleter;
@@ -104,21 +104,21 @@ define([
if (isEnterAddressKey(keyPressed)) {
this.tokenizeRecipient(event);
- if((keyPressed !== 9 /* tab */)) {
+ if ((keyPressed !== 9 /* tab */)) {
event.preventDefault();
}
}
};
- this.tokenizeRecipient = function (event) {
- if (_.isEmpty(this.$node.val())) {
- return;
- }
+ this.tokenizeRecipient = function (event) {
+ if (_.isEmpty(this.$node.val())) {
+ return;
+ }
- this.recipientSelected(null, {value: this.$node.val() });
- event.preventDefault();
- }
+ this.recipientSelected(null, {value: this.$node.val() });
+ event.preventDefault();
+ };
this.recipientSelected = function (event, data) {
var value = (data && data.value) || this.$node.val();