diff options
| author | Nikunj Ladava <nla@odoo.com> | 2017-05-19 17:48:45 +0530 |
|---|---|---|
| committer | Géry Debongnie <ged@odoo.com> | 2018-01-25 12:18:10 +0100 |
| commit | c778de44c7cd9b7ef5a9a91738164ab0ebd0ca06 (patch) | |
| tree | f41e5e5eaa1bb7e19a4ab052aa7ed65c9bb28c05 /addons/mail/static/src/js/chatter.js | |
| parent | f50c6b1f6c79e766add1015a393230b525f89bfa (diff) | |
[IMP] mail : display mentions in green color in edit mode
When someone mentions another person in discuss/chat window, the
mentioned name was displayed just as a text, which may be unclear. With
this commit, we display mentions with the same style as mentions in a
message.
To do that, the main idea is to change the input by a div with
contenteditable set to true. This allows us to add <a>...</a> inside.
Diffstat (limited to 'addons/mail/static/src/js/chatter.js')
| -rw-r--r-- | addons/mail/static/src/js/chatter.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/mail/static/src/js/chatter.js b/addons/mail/static/src/js/chatter.js index cc71046039d..649a7381f7c 100644 --- a/addons/mail/static/src/js/chatter.js +++ b/addons/mail/static/src/js/chatter.js @@ -185,7 +185,7 @@ var Chatter = Widget.extend(chat_mixin, { input_baseline: 14, is_log: options && options.is_log, record_name: this.record_name, - default_body: old_composer && old_composer.$input && old_composer.$input.val(), + default_body: old_composer && old_composer.$input && old_composer.$input.html(), default_mention_selections: old_composer && old_composer.mention_get_listener_selections(), }); this.composer.on('input_focused', this, function () { |
