From 1dbeac3e5a6c3bba0caa54df20603d77704f90cd Mon Sep 17 00:00:00 2001 From: Aaron Bohy Date: Tue, 20 Oct 2015 14:25:03 +0200 Subject: [PATCH] [IMP] mail: mention starts detecting from @ --- addons/mail/static/src/js/composer.js | 4 ++-- 1 file 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