From 0780304656229d5d425f6073b2146064d9480e95 Mon Sep 17 00:00:00 2001 From: Julien Legros Date: Fri, 24 Oct 2014 16:40:25 +0200 Subject: [PATCH] [FIX] mail: append messages at the right place e6790ba introduced a bug where messages were always appended at the end of the thread, potentially displaying them in the wrong order. --- addons/mail/static/src/js/mail.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/mail/static/src/js/mail.js b/addons/mail/static/src/js/mail.js index 80dacd6..099af49 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.parent() ); + self.parent_thread.switch_new_message(data, self.$el); self.animated_destroy(200); }); -- 1.7.10.4