From bb1ca3e5d91f39ead84ea60e62513179e44e8583 Mon Sep 17 00:00:00 2001 From: Benjamin Vray 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 X-original-commit: 3509d438133de46ef02bb70255c7cd737a695f15 --- 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 7c084751d52..761b0537fa1 100644 --- a/addons/website_forum/static/src/js/website_forum.js +++ b/addons/website_forum/static/src/js/website_forum.js @@ -151,7 +151,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(); }); });