diff --git a/addons/mail/static/src/js/mail.js b/addons/mail/static/src/js/mail.js index 7f18f650dae..8e1be70e459 100644 --- a/addons/mail/static/src/js/mail.js +++ b/addons/mail/static/src/js/mail.js @@ -369,6 +369,7 @@ openerp.mail = function(session) { this.$el.replaceWith( $render ); this.$el = $render; this.$('textarea').focus(); + this.bind_events(); }, /* convert the compact mode into the compose message @@ -377,6 +378,7 @@ openerp.mail = function(session) { var $render = $(session.web.qweb.render('mail.compose_message.compact', {'widget': this})); this.$el.replaceWith( $render ); this.$el = $render; + this.bind_events(); }, }); diff --git a/addons/mail/static/src/xml/mail.xml b/addons/mail/static/src/xml/mail.xml index 6a76c7aa323..450e9a834e2 100644 --- a/addons/mail/static/src/xml/mail.xml +++ b/addons/mail/static/src/xml/mail.xml @@ -246,7 +246,7 @@ -->
- +