Skip to content
Snippets Groups Projects
Commit 3509d438 authored by Benjamin Vray's avatar Benjamin Vray
Browse files

[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
912996fe . Because of this, the click
event of the forum post submit button was not working.

task-2312878
Part of #66316
parent 05d34d4f
No related branches found
No related tags found
No related merge requests found
......@@ -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();
});
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment