From 072e24b8eb64fad34353f72bc918729f198f91aa Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Fri, 14 Dec 2012 11:29:43 +0100 Subject: [PATCH] [FIX]mail: allow to click on partner when the user compose an empty message bzr revid: chm@openerp.com-20121214102943-qcsyyua30j0rqajz --- 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 fa22bbee5fa..ba7db199c74 100644 --- a/addons/mail/static/src/js/mail.js +++ b/addons/mail/static/src/js/mail.js @@ -480,7 +480,7 @@ openerp.mail = function (session) { this.$('.oe_full').on('click', _.bind( this.on_compose_fullmail, this, this.id ? 'reply' : 'comment') ); /* stack for don't close the compose form if the user click on a button */ - this.$('.oe_msg_footer').on('mousedown', _.bind( function () { this.stay_open = true; }, this)); + this.$('.oe_msg_footer, .oe_mail_list_recipients').on('mousedown', _.bind( function () { this.stay_open = true; }, this)); var ev_stay = {}; ev_stay.mouseup = ev_stay.keydown = ev_stay.focus = function () { self.stay_open = false; }; this.$('textarea').on(ev_stay);