diff options
| author | Christophe Matthieu <chm@openerp.com> | 2012-11-28 12:34:21 +0100 |
|---|---|---|
| committer | Christophe Matthieu <chm@openerp.com> | 2012-11-28 12:34:21 +0100 |
| commit | 89fce592833ffab07aa1f0baf7c49d96f77bfdfb (patch) | |
| tree | 1e1a62f4129fac003dee2641bb98b219707df5d9 | |
| parent | 1c32100052900ec60e8c584833b0cc9a9fbfda7c (diff) | |
[IMP] mail: not display the 'no message' before to fetch the wall messages.
bzr revid: chm@openerp.com-20121128113421-rcoo4003npxtnfzb
| -rw-r--r-- | addons/mail/static/src/js/mail.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/addons/mail/static/src/js/mail.js b/addons/mail/static/src/js/mail.js index bb1a8067644..9fcf8cbb7c5 100644 --- a/addons/mail/static/src/js/mail.js +++ b/addons/mail/static/src/js/mail.js @@ -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(); |
