summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/js
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2016-01-25 10:56:25 +0100
committerAaron Bohy <aab@odoo.com>2016-01-25 15:47:25 +0100
commit16a3a4b7fe4ccad4f2e05c19ecc0ddb4694d4911 (patch)
treece8a8398de443eb028877612b433f32ab36abb48 /addons/mail/static/src/js
parentfc42880da276736992d9cbc20fb423edb16a7d21 (diff)
[FIX] im_livechat,mail: various livechat fixes
- prevent concurrent opening of the chat window - take into account the placeholder value of the livechat session record - don't send welcome message if empty
Diffstat (limited to 'addons/mail/static/src/js')
-rw-r--r--addons/mail/static/src/js/chat_window.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/mail/static/src/js/chat_window.js b/addons/mail/static/src/js/chat_window.js
index 63074b403c9..95ac9dd8897 100644
--- a/addons/mail/static/src/js/chat_window.js
+++ b/addons/mail/static/src/js/chat_window.js
@@ -24,10 +24,10 @@ return Widget.extend({
this._super(parent);
this.title = title;
this.channel_id = channel_id;
- this.placeholder = _t("Say something");
this.folded = is_folded;
this.options = _.defaults(options || {}, {
display_stars: true,
+ placeholder: _t("Say something"),
});
this.unread_msgs = unread_msgs || 0;
this.is_hidden = false;