From 2817d119b632cdcc3ca6414019bdf776f98d0a8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Thu, 10 May 2012 17:15:38 +0200 Subject: [PATCH] [FIX] Thread widget: expander now applied to the correct span containing the message, fixing the wall not displaying 'more / less' BTW. bzr revid: tde@openerp.com-20120510151538-uq8vq67x3x7mdjps --- addons/mail/static/src/js/mail.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/mail/static/src/js/mail.js b/addons/mail/static/src/js/mail.js index da0ac27e2ff..031e63e275b 100644 --- a/addons/mail/static/src/js/mail.js +++ b/addons/mail/static/src/js/mail.js @@ -285,13 +285,13 @@ openerp.mail = function(session) { // body text manipulation record.body = this.do_clean_text(record.body); record.body = this.do_replace_internal_links(record.body); - this.$element.find('span.oe_mail_msg_body:last').expander({slicePoint: this.params.msg_more_limit, moreClass: 'oe_mail_expand', lesClass: 'oe_mail_reduce'}); // format date according to the user timezone record.date = session.web.format_value(record.date, {type:"datetime"}); // render $(session.web.qweb.render('ThreadMsg', {'record': record, 'thread': this, 'params': this.params, 'display': this.display}) ).appendTo(this.$element.children('div.oe_mail_thread_display:first')); - // truncated: hide full-text, show summary, add buttons + // expand feature + this.$element.find('span.oe_mail_msg_body:last').expander({slicePoint: this.params.msg_more_limit, moreClass: 'oe_mail_expand', lesClass: 'oe_mail_reduce'}); }, /**