[MERGE] mail: thread expander fixes

bzr revid: fva@openerp.com-20121030134513-i7hao2n4sjtd4bsw
This commit is contained in:
Frédéric van der Essen
2012-10-30 14:45:13 +01:00
2 changed files with 6 additions and 5 deletions
+2 -1
View File
@@ -299,6 +299,7 @@
.openerp .oe_mail .oe_msg_content.oe_msg_more_message{
text-align: right;
cursor: pointer;
}
.openerp .oe_mail .oe_msg_content.oe_msg_more_message .oe_separator{
height: 0;
@@ -310,7 +311,7 @@
}
.openerp .oe_mail .oe_msg_more_message .oe_msg_fetch_more {
background: white;
margin-right: 280px;
margin-right: 210px;
padding-left: 8px;
padding-right: 8px;
text-decoration: none;
+4 -4
View File
@@ -460,7 +460,7 @@ openerp.mail = function (session) {
* Bind events in the widget. Each event is slightly described
* in the function. */
bind_events: function () {
this.$el.on('click', 'a.oe_msg_fetch_more', this.on_expandable);
this.$el.on('click', '.oe_msg_more_message', this.on_expandable);
},
animated_destroy: function (fadeTime) {
@@ -669,10 +669,10 @@ openerp.mail = function (session) {
this.$('.oe_msg_body:first').expander({
slicePoint: this.options.truncate_limit,
expandText: 'read more',
userCollapseText: '[^]',
userCollapseText: '&atilde',
detailClass: 'oe_msg_tail',
moreClass: 'oe_mail_expand',
lessClass: 'oe_mail_reduce',
lessClass: 'oe_mail_reduce oe_e',
});
},
@@ -957,7 +957,7 @@ openerp.mail = function (session) {
/* bottom of the screen */
var bottom = $(window).scrollTop()+$(window).height()+200;
if (bottom > pos.top) {
$last.find('.oe_msg_fetch_more').click();
$last.find('.oe_msg_more_message').click();
}
}
}