diff options
| author | Benjamin Vray <bvr@odoo.com> | 2021-02-16 15:20:59 +0000 |
|---|---|---|
| committer | Benjamin Vray <bvr@odoo.com> | 2021-02-17 15:14:30 +0000 |
| commit | 2363a32b6b5bc30096d44d58d29adc33bc9fa31b (patch) | |
| tree | d85d4e8c8a7fdb3ef7cc89905a29de55ef4c72d9 /addons/website_forum/static | |
| parent | 2b04f862fb61abb3b56333abba243a6e7016ff00 (diff) | |
[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
Diffstat (limited to 'addons/website_forum/static')
| -rw-r--r-- | addons/website_forum/static/src/js/website_forum.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website_forum/static/src/js/website_forum.js b/addons/website_forum/static/src/js/website_forum.js index 46b6a389c5d..77dfb6715a8 100644 --- a/addons/website_forum/static/src/js/website_forum.js +++ b/addons/website_forum/static/src/js/website_forum.js @@ -154,7 +154,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(); }); }); |
