From 7523d0477f0bf7ff31d0f989de602d248929392d Mon Sep 17 00:00:00 2001 From: Cocographique Date: Thu, 14 May 2020 10:12:28 +0000 Subject: [PATCH] [IMP] website: clean "countdown" snippet end message Part of #49697 task-2210730 --- .../static/src/snippets/s_countdown/options.js | 2 +- .../static/src/xml/website.s_countdown.xml | 15 +++++++-------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/addons/website/static/src/snippets/s_countdown/options.js b/addons/website/static/src/snippets/s_countdown/options.js index c591c155b1b..8d6ff3d5ba3 100644 --- a/addons/website/static/src/snippets/s_countdown/options.js +++ b/addons/website/static/src/snippets/s_countdown/options.js @@ -25,7 +25,7 @@ options.registry.countdown = options.Class.extend({ if (widgetValue === 'message') { if (!this.$target.find('.s_countdown_end_message').length) { const message = this.endMessage || qweb.render('website.s_countdown.end_message'); - this.$target.find('.container').append(message); + this.$target.append(message); } } else { const $message = this.$target.find('.s_countdown_end_message').detach(); diff --git a/addons/website/static/src/xml/website.s_countdown.xml b/addons/website/static/src/xml/website.s_countdown.xml index 6a380ebad00..079054471cf 100644 --- a/addons/website/static/src/xml/website.s_countdown.xml +++ b/addons/website/static/src/xml/website.s_countdown.xml @@ -9,16 +9,15 @@ The following message will become visible only once the countdown ends.
-
+
-
-
-

Happy Odoo Anniversary!

-

As promised, we will offer 4 free tickets to our next summit.
Visit our facebook page to know if you are one of the lucky winners.
Hopefully, we will meet you soon.

-
-
+

Happy Odoo Anniversary!

+

As promised, we will offer 4 free tickets to our next summit.
Visit our Facebook page to know if you are one of the lucky winners.

+


+
+
- Countdown is over - Firework + Countdown is over - Firework