From f75a3e90557fc5a8a20a59e3941bce06d5f84bd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Wed, 7 Mar 2012 14:29:08 +0100 Subject: [PATCH] [IMP] Thread widget: comment and 'load more' are not displayed in threaded view, except for last level bzr revid: tde@openerp.com-20120307132908-xj6y92lo3a2ec2sf --- addons/mail/static/src/js/mail.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/addons/mail/static/src/js/mail.js b/addons/mail/static/src/js/mail.js index fd282a953d6..f85707348f8 100644 --- a/addons/mail/static/src/js/mail.js +++ b/addons/mail/static/src/js/mail.js @@ -59,8 +59,10 @@ openerp.mail = function(session) { start: function() { var self = this; this._super.apply(this, arguments); - /* events */ + /* display customization and events */ this.$element.find('p.oe_mail_p_nomore').hide(); + if (this.params.thread_level > 0) this.$element.find('div.oe_mail_thread_act').hide(); + if (this.params.thread_level > 0) this.$element.find('div.oe_mail_thread_more').hide(); this.$element.find('button.oe_mail_button_comment').bind('click', function () { self.do_comment(); }); this.$element.find('button.oe_mail_button_more').bind('click', function () { self.do_more(); }); this.$element.find('div.oe_mail_thread_display').delegate('a.intlink', 'click', function (event) {