summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/js/thread_field.js
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2017-07-14 15:51:59 +0200
committerChristophe Simonis <chs@odoo.com>2017-07-14 15:51:59 +0200
commitdb2f82d5f1a8c4fdbbd61a0aa7daef2def0ef06e (patch)
tree4dd6a0d816180b06963a245d01a817ebcdaf7868 /addons/mail/static/src/js/thread_field.js
parent55d72e1ab4a64f52e040911a8b4b4c8ce9443f65 (diff)
parent4ca3d9cadf9607c95880bb5222041bced7b13ec0 (diff)
[MERGE] forward port branch saas-16 up to 4ca3d9cadf9
Diffstat (limited to 'addons/mail/static/src/js/thread_field.js')
-rw-r--r--addons/mail/static/src/js/thread_field.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/mail/static/src/js/thread_field.js b/addons/mail/static/src/js/thread_field.js
index 481dc49af36..0d7635cae8b 100644
--- a/addons/mail/static/src/js/thread_field.js
+++ b/addons/mail/static/src/js/thread_field.js
@@ -21,7 +21,7 @@ var ThreadField = AbstractField.extend(chat_mixin, {
this.msgIDs = this.value.res_ids;
},
willStart: function () {
- return this._chatReady();
+ return this.alive(this._chatReady());
},
start: function () {
var self = this;
@@ -43,7 +43,7 @@ var ThreadField = AbstractField.extend(chat_mixin, {
var def1 = this.thread.appendTo(this.$el);
var def2 = this._super.apply(this, arguments);
- return $.when(def1, def2).then(function () {
+ return this.alive($.when(def1, def2)).then(function () {
// unwrap the thread to remove an unnecessary level on div
self.setElement(self.thread.$el);