Skip to content
Snippets Groups Projects
Commit f7e83b69 authored by qsm-odoo's avatar qsm-odoo
Browse files

[FIX] website_event: clean local events snippet before save


The local events snippets is an empty HTMLElement which is filled by
JavaScript on page loading. Before this commit, the filled content was
saved in database. This does not create a real problem as the content
is reloaded as soon as the page loads but you can see old events
flickering before the new events are actually loaded.

Now the snippet is cleaned before saving. This also allows to add
default content with a custo so that it is shown during the events
loading (as we are currently doing on odoo.com...).

closes odoo/odoo#35597

Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
parent dff2e242
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment