From f085040dfa19286dd9e1766237679957c2d2ac83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Theys?= Date: Tue, 28 Jun 2022 13:00:38 +0000 Subject: [PATCH] [IMP] mail: remove jquery from form renderer Part of task-2871070 Part-of: odoo/odoo#95085 --- .../mail/static/src/widgets/form_renderer/form_renderer.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/mail/static/src/widgets/form_renderer/form_renderer.js b/addons/mail/static/src/widgets/form_renderer/form_renderer.js index 368da79228e..5fc5b3a1442 100644 --- a/addons/mail/static/src/widgets/form_renderer/form_renderer.js +++ b/addons/mail/static/src/widgets/form_renderer/form_renderer.js @@ -57,7 +57,7 @@ FormRenderer.include({ _renderNode(node) { if (node.tag === 'div' && node.attrs.class === 'oe_chatter') { if (!this.hasChatter) { - return $('
'); + return document.createElement("div"); } this.chatterContainerTargetPlaceholder = this._chatterContainerTarget.cloneNode(false); return this.chatterContainerTargetPlaceholder; @@ -165,9 +165,9 @@ FormRenderer.include({ */ _updateChatterContainerTarget() { if (this._isChatterAside()) { - $(this._chatterContainerTarget).addClass('o-aside'); + this._chatterContainerTarget.classList.add('o-aside'); } else { - $(this._chatterContainerTarget).removeClass('o-aside'); + this._chatterContainerTarget.classList.remove('o-aside'); } if (this.hasAttachmentViewer()) { this._chatterContainerTarget.classList.add('o-isInFormSheetBg');