[FIX] mail: chatter read more/less expand first oe_msg_body_long/short in the first oe_msg_body

Otherwise, if the mail itself contains a oe_msg_body_long (because sent in the mail history), it will open that one
This commit is contained in:
Denis Ledoux 2014-09-17 18:03:34 +02:00
parent b6e6b57326
commit 45b4b71fa4
1 changed files with 2 additions and 2 deletions

View File

@ -973,8 +973,8 @@ openerp.mail = function (session) {
on_expand: function (event) {
event.stopPropagation();
this.$('.oe_msg_body_short:first').toggle();
this.$('.oe_msg_body_long:first').toggle();
this.$('.oe_msg_body:first > .oe_msg_body_short:first').toggle();
this.$('.oe_msg_body:first > .oe_msg_body_long:first').toggle();
return false;
},