Skip to content
Permalink
Browse files

[IMP]mail: add classes through start method as Controller will always…

… have template(as controller has actionMixin which has 'Action' as template), so we can not directly give className
  • Loading branch information...
msh-odoo committed Feb 19, 2019
1 parent a2fb873 commit dfa183092af911dad2da39cf19d04d861f91c03a
Showing with 5 additions and 1 deletion.
  1. +5 −1 addons/mail/static/src/js/activity_form_view.js
@@ -25,11 +25,15 @@ var InlineActivityFieldTextHtml = HtmlField.extend({
});

var InlineActivityFormController = FormController.extend({
className: "o_chat_composer o_activity_inline_form",
custom_events: _.extend({}, FormController.prototype.custom_events, {
env_updated: '_onEnvUpdated',
}),

start: function () {
this.$el.addClass('o_chat_composer').addClass('o_activity_inline_form');
return this._super.apply(this, arguments);
},

//--------------------------------------------------------------------------
// Handlers
//--------------------------------------------------------------------------

0 comments on commit dfa1830

Please sign in to comment.
You can’t perform that action at this time.