From 09ee80ce68d5e9d48314bcbf1c1a1f18ae31515b Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Wed, 17 Oct 2012 12:40:26 +0200 Subject: [PATCH] [IMP] mail: deferred bzr revid: chm@openerp.com-20121017104026-zamtldzb0k3s551s --- addons/mail/static/src/js/mail.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/mail/static/src/js/mail.js b/addons/mail/static/src/js/mail.js index 5e4e4d7d689..7025dcb2bd1 100644 --- a/addons/mail/static/src/js/mail.js +++ b/addons/mail/static/src/js/mail.js @@ -1307,7 +1307,7 @@ openerp.mail = function(session) { var thread_displayed = this.message_render(); this.options.domain = this.options.domain.concat(this.search_results['domain']); this.bind_events(); - return (searchview_ready && thread_displayed); + return $.when(searchview_ready, thread_displayed); }, /** @@ -1377,6 +1377,7 @@ openerp.mail = function(session) { bind_events: function(){ var self=this; this.$("button.oe_write_full:first").click(function(){ self.thread.ComposeMessage.on_compose_fullmail(); }); + this.$("button.oe_write_onwall:first").click(function(){ self.thread.ComposeMessage.$el.toggle(); }); } });