summaryrefslogtreecommitdiff
path: root/web-ui
diff options
context:
space:
mode:
authorDuda Dornelles <ddornell@thoughtworks.com>2014-10-24 14:38:06 +0200
committerDuda Dornelles <ddornell@thoughtworks.com>2014-10-24 14:38:06 +0200
commit2ef4ac88983f3bc13639b8806fc77a9f08e92a53 (patch)
treeda9899ad5cbe7db1597ce61f8fa8638ecc1a8411 /web-ui
parentf6756ae2a53e3c6a8521c11dd406d8a9e9d0f515 (diff)
fixing jshint warnings
Diffstat (limited to 'web-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();