[FIX]mail: allow to click on partner when the user compose an empty message
authorChristophe Matthieu <chm@openerp.com>
Fri, 14 Dec 2012 10:29:43 +0000 (11:29 +0100)
committerChristophe Matthieu <chm@openerp.com>
Fri, 14 Dec 2012 10:29:43 +0000 (11:29 +0100)
bzr revid: chm@openerp.com-20121214102943-qcsyyua30j0rqajz

addons/mail/static/src/js/mail.js

index fa22bbe..ba7db19 100644 (file)
@@ -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);