summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/js/mail.js
diff options
context:
space:
mode:
Diffstat (limited to 'addons/mail/static/src/js/mail.js')
-rw-r--r--addons/mail/static/src/js/mail.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/mail/static/src/js/mail.js b/addons/mail/static/src/js/mail.js
index fc4f498ad94..a42bc417683 100644
--- a/addons/mail/static/src/js/mail.js
+++ b/addons/mail/static/src/js/mail.js
@@ -880,7 +880,7 @@ openerp.mail = function (session) {
self.parent_thread.message_fetch(this.domain, this.context, false, function (arg, data) {
self.id = false;
// insert the message on dom after this message
- self.parent_thread.switch_new_message( data, self.$el );
+ self.parent_thread.switch_new_message( data, self.$el.parent() );
self.animated_destroy(200);
});
@@ -1021,8 +1021,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;
},