[IMP] mail: mail composer before the thread message

bzr revid: chm@openerp.com-20121108104036-pkhtyscv45qg7hag
This commit is contained in:
Christophe Matthieu 2012-11-08 11:40:36 +01:00
parent d28124c40c
commit 8c055d6244
1 changed files with 2 additions and 5 deletions

View File

@ -1022,13 +1022,10 @@ openerp.mail = function (session) {
'context': this.context,
'options': this.options,
});
if (!this.thread_level) {
// root view
if (!this.thread_level || this.thread_level > this.options.display_indented_thread) {
this.compose_message.insertBefore(this.$el);
} else if (this.thread_level > this.options.display_indented_thread) {
this.compose_message.insertAfter(this.$el);
} else {
this.compose_message.appendTo(this.$el);
this.compose_message.prependTo(this.$el);
}
}
},