diff options
| author | Achraf (abz) <abz@odoo.com> | 2020-11-03 13:37:04 +0000 |
|---|---|---|
| committer | Achraf (abz) <abz@odoo.com> | 2020-11-04 16:13:37 +0000 |
| commit | 77ffd6343be21ef188046f138493e1e807090c48 (patch) | |
| tree | 97ed782a3400c5815ede09ce3f9570b4b7567725 /addons/website_event/static/src | |
| parent | 9ba396afa68884f477096d3e7f3c824ff97f3aac (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')
| -rw-r--r-- | addons/website_event/static/src/js/website_geolocation.js | 1 |
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); |
