diff options
| author | Benjamin Vray <bvr@odoo.com> | 2020-08-06 10:09:29 +0000 |
|---|---|---|
| committer | Benjamin Vray <bvr@odoo.com> | 2020-09-22 09:44:56 +0000 |
| commit | 6d7f0566afd9c22531092cba52a00ba9a6af669d (patch) | |
| tree | dd9f20d2bf667e4f538accd60dc0fd1f3c30f47b /addons/website/static/src/snippets | |
| parent | 35269de724816366be95063f9db3e0c936276043 (diff) | |
[FIX] website: fix redirect message in the countdown snippet
Before this commit the redirect message was not added at the end of
the countdown if the content-with option of the snippet was not Regular
It was because we did an append on the '.container' class to add this
message and that class is replaced when we change the content-with.
task-2312878
closes odoo/odoo#58189
X-original-commit: f4e3cc6edda13d76368a38f3807be6ea5a279141
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
Diffstat (limited to 'addons/website/static/src/snippets')
| -rw-r--r-- | addons/website/static/src/snippets/s_countdown/000.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/website/static/src/snippets/s_countdown/000.js b/addons/website/static/src/snippets/s_countdown/000.js index 5f28a71595c..f15b5e94e23 100644 --- a/addons/website/static/src/snippets/s_countdown/000.js +++ b/addons/website/static/src/snippets/s_countdown/000.js @@ -101,7 +101,8 @@ const CountdownWidget = publicWidget.Widget.extend({ } else { // Show (non editable) msg when user lands on already finished countdown if (!this.$('.s_countdown_end_redirect_message').length) { - this.$target.find('.container').append( + const $container = this.$('> .container, > .container-fluid, > .o_container_small'); + $container.append( $(qweb.render('website.s_countdown.end_redirect_message', { redirectUrl: redirectUrl, })) |
