[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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user