summaryrefslogtreecommitdiff
path: root/addons/website_event/static/src/js/website_geolocation.js
diff options
context:
space:
mode:
authorAchraf (abz) <abz@odoo.com>2020-11-03 13:37:04 +0000
committerAchraf (abz) <abz@odoo.com>2020-11-04 16:13:37 +0000
commit77ffd6343be21ef188046f138493e1e807090c48 (patch)
tree97ed782a3400c5815ede09ce3f9570b4b7567725 /addons/website_event/static/src/js/website_geolocation.js
parent9ba396afa68884f477096d3e7f3c824ff97f3aac (diff)
[FIX] website_event: Prevent event block title to be edited
Issue - Install "Website" and "website_event" - Try to add Event block The title is editable Cause The contentEditable attribut is enabled Solution Disable the contentEditable attribut opw-2367538 closes odoo/odoo#61267 Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
Diffstat (limited to 'addons/website_event/static/src/js/website_geolocation.js')
-rw-r--r--addons/website_event/static/src/js/website_geolocation.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/website_event/static/src/js/website_geolocation.js b/addons/website_event/static/src/js/website_geolocation.js
index dcf4f061489..0c93dbbb23c 100644
--- a/addons/website_event/static/src/js/website_geolocation.js
+++ b/addons/website_event/static/src/js/website_geolocation.js
@@ -19,6 +19,7 @@ publicWidget.registry.visitor = publicWidget.Widget.extend({
if (data) {
self._$loadedContent = $(data);
+ self._$loadedContent.attr('contentEditable', false);
self._$loadedContent.addClass('o_temp_auto_element');
self._$loadedContent.attr('data-temp-auto-element-original-content', self._originalContent);