[IMP] Thread widget: added options in expander used to truncate message content.

bzr revid: tde@openerp.com-20120510123156-0khgojmvvijp4gik
This commit is contained in:
Thibault Delavallée
2012-05-10 14:31:56 +02:00
parent d54b9df311
commit 0c102754d4
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -230,7 +230,7 @@
border-bottom: 1px solid #D2D9E7;
}
.openerp span.oe_mail_msg_body a.reduce, .openerp span.oe_mail_msg_body_short a.expand {
.openerp a.oe_mail_expand, .openerp a.oe_mail_reduce {
color: #4E43E7;
}
+1 -1
View File
@@ -285,7 +285,7 @@ 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();
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