summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2015-10-20 14:25:03 +0200
committerGéry Debongnie <ged@odoo.com>2015-10-22 14:43:14 +0200
commit1dbeac3e5a6c3bba0caa54df20603d77704f90cd (patch)
tree46630f53585729ffa31e31b97de8c28e20ceaddc
parent2a80f0a85090977ff0a47c69cd262bcd0e8a8f64 (diff)
[IMP] mail: mention starts detecting from @
-rw-r--r--addons/mail/static/src/js/composer.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/mail/static/src/js/composer.js b/addons/mail/static/src/js/composer.js
index 1d5b75bbbab..4ca2ca6483c 100644
--- a/addons/mail/static/src/js/composer.js
+++ b/addons/mail/static/src/js/composer.js
@@ -34,7 +34,7 @@ var Composer = Widget.extend({
input_max_height: 150,
input_min_height: 28,
mention_delimiter: '@',
- mention_min_length: 2,
+ mention_min_length: 0,
mention_typing_speed: 400,
mention_fetch_limit: 8,
});
@@ -197,7 +197,7 @@ var Composer = Widget.extend({
// Otherwise, check if a mention is typed
default:
this.mention_word = this.mention_detect_delimiter();
- if (this.mention_word) {
+ if (this.mention_word !== false) {
this.mention_word_changed();
} else {
this.set('mention_partners', []); // close the dropdown