-
- Downloads
[IMP] website: add consent duration on s_popup snippet
This commit introduce a new snippet option for s_popup to control the consent duration in days. This value will be used to know if the popup should be shown or not. If the user close the popup, it won't be shown until the consent duration is over. This will also avoid popup to be shown on exit (display mode) more than once. Indeed, every mouseout of the screen (changing tab, changing app, alt tab etc) would show the popup, as well as page navigation. Part of https://github.com/odoo/odoo/pull/41294 task-2087003
Showing
- addons/website/static/src/snippets/s_popup/000.js 6 additions, 1 deletionaddons/website/static/src/snippets/s_popup/000.js
- addons/website/static/src/snippets/s_popup/options.js 20 additions, 0 deletionsaddons/website/static/src/snippets/s_popup/options.js
- addons/website/views/snippets/s_popup.xml 3 additions, 1 deletionaddons/website/views/snippets/s_popup.xml
Please register or sign in to comment