[FIX]mail: allow to click on partner when the user compose an empty message

bzr revid: chm@openerp.com-20121214102943-qcsyyua30j0rqajz
This commit is contained in:
Christophe Matthieu
2012-12-14 11:29:43 +01:00
parent 2c5da821f3
commit 072e24b8eb
+1 -1
View 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);