[IMP] mail: not display the 'no message' before to fetch the wall messages.

bzr revid: chm@openerp.com-20121128113421-rcoo4003npxtnfzb
This commit is contained in:
Christophe Matthieu 2012-11-28 12:34:21 +01:00
parent 1c32100052
commit 89fce59283
1 changed files with 3 additions and 1 deletions

View File

@ -1257,6 +1257,9 @@ openerp.mail = function (session) {
// insert the message on dom
thread.insert_message( message, typeof dom_insert_after == 'object' ? dom_insert_after : false);
});
if (!records.length && this.options.root_thread == this) {
this.no_message();
}
},
/**
@ -1440,7 +1443,6 @@ openerp.mail = function (session) {
});
this.thread.appendTo( this.$el );
this.thread.no_message();
if (this.action.params.show_compose_message) {
this.thread.instantiate_compose_message();