summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/js/thread_widget.js
diff options
context:
space:
mode:
Diffstat (limited to 'addons/mail/static/src/js/thread_widget.js')
-rw-r--r--addons/mail/static/src/js/thread_widget.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/addons/mail/static/src/js/thread_widget.js b/addons/mail/static/src/js/thread_widget.js
index 9550931ad95..3ec66d02520 100644
--- a/addons/mail/static/src/js/thread_widget.js
+++ b/addons/mail/static/src/js/thread_widget.js
@@ -55,6 +55,7 @@ var ThreadWidget = Widget.extend({
*/
init: function (parent, options) {
this._super.apply(this, arguments);
+ this.attachments = [];
// options when the thread is enabled (e.g. can send message,
// interact on messages, etc.)
this._enabledOptions = _.defaults(options || {}, {
@@ -220,6 +221,14 @@ var ThreadWidget = Widget.extend({
}
},
+ /**
+ * Render thread widget when loading, i.e. when messaging is not yet ready.
+ * @see /mail/init_messaging
+ */
+ renderLoading: function () {
+ this.$el.html(QWeb.render('mail.widget.ThreadLoading'));
+ },
+
//--------------------------------------------------------------------------
// Public
//--------------------------------------------------------------------------