summaryrefslogtreecommitdiff
path: root/addons/website_forum/static/src
diff options
context:
space:
mode:
authorNicolas Lempereur <nle@odoo.com>2021-03-16 12:25:06 +0000
committerNicolas Lempereur <nle@odoo.com>2021-03-17 13:13:57 +0000
commit063421353b3093421bfe2587ba60b38bc1760671 (patch)
treedf83da42c5986d70d0d85a5f728cbd7a274d352f /addons/website_forum/static/src
parenteb6ba44a6bfd0ebfce887edc307e0306765e5183 (diff)
[FIX] website_forum: show normal image modal in forum
In #67893 the image icon was removed, but it contradicts the interface and made a feature that was working for employee less available. Since saas-12.3, we always use the full media dialog when showing the editor on the forum so we could not add an image with the image icon if were not an employee. Before saas-12.3, the original summernote image dialog was shown for everyone but website editor that saw the full media dialog (beecause we are using the same editor to do both things). With this change, we always have the original dialog in the forum message editor thanks to a new option "disableFullMediaDialog". opw-2470720 closes odoo/odoo#68018 X-original-commit: 74af23fb0be60c996503ad599eb96bc2ab4d64f9 Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
Diffstat (limited to 'addons/website_forum/static/src')
-rw-r--r--addons/website_forum/static/src/js/website_forum.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/website_forum/static/src/js/website_forum.js b/addons/website_forum/static/src/js/website_forum.js
index c51a6ed967b..e65d8944aa3 100644
--- a/addons/website_forum/static/src/js/website_forum.js
+++ b/addons/website_forum/static/src/js/website_forum.js
@@ -143,6 +143,7 @@ publicWidget.registry.websiteForum = publicWidget.Widget.extend({
res_model: 'forum.post',
res_id: +window.location.pathname.split('-').pop(),
},
+ disableFullMediaDialog: true,
disableResizeImage: true,
};
if (!hasFullEdit) {