[IMP] Thread widget: added options in expander used to truncate message content.
bzr revid: tde@openerp.com-20120510123156-0khgojmvvijp4gik
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user