From 3509d438133de46ef02bb70255c7cd737a695f15 Mon Sep 17 00:00:00 2001 From: Benjamin Vray <bvr@odoo.com> Date: Tue, 16 Feb 2021 15:20:59 +0000 Subject: [PATCH] [FIX] website_forum: fix selector in event of the submit btn of a post A comma was removed in the following commit for no reason 912996fe902c41cafa12dcfe09713ce9857f95ab . Because of this, the click event of the forum post submit button was not working. task-2312878 Part of #66316 --- addons/website_forum/static/src/js/website_forum.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/website_forum/static/src/js/website_forum.js b/addons/website_forum/static/src/js/website_forum.js index efae9105f62b..cdc856fa26e9 100644 --- a/addons/website_forum/static/src/js/website_forum.js +++ b/addons/website_forum/static/src/js/website_forum.js @@ -152,7 +152,7 @@ publicWidget.registry.websiteForum = publicWidget.Widget.extend({ wysiwygLoader.load(self, $textarea[0], options).then(wysiwyg => { // float-left class messes up the post layout OPW 769721 $form.find('.note-editable').find('img.float-left').removeClass('float-left'); - $form.on('click', 'button .a-submit', () => { + $form.on('click', 'button, .a-submit', () => { wysiwyg.save(); }); }); -- GitLab