[IMP] Thread widget: comment and 'load more' are not displayed in threaded view, except for last level

bzr revid: tde@openerp.com-20120307132908-xj6y92lo3a2ec2sf
This commit is contained in:
Thibault Delavallée
2012-03-07 14:29:08 +01:00
parent c612cd1c1c
commit f75a3e9055
+3 -1
View File
@@ -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) {