From 2feaee191bbbef33c9a6eb99a96592669f17f729 Mon Sep 17 00:00:00 2001 From: DramixDw Date: Thu, 11 Jun 2020 07:06:28 +0000 Subject: [PATCH] [FIX] website: hide countdown at the end When using the options 'Hide countdown at the end', only the first canvas would dissapear and the message wasn't showing up. It was due to a return in a loop that would cause the code to stop at that point instead of just going to the next iteration as intented. task-2261649 closes odoo/odoo#53218 X-original-commit: 9b5f5cfce5d2d01c8e02f231e69ab350a3178795 Signed-off-by: Quentin Smetz (qsm) --- addons/website/static/src/snippets/s_countdown/000.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/website/static/src/snippets/s_countdown/000.js b/addons/website/static/src/snippets/s_countdown/000.js index 2d3e9f56fb9..cdee6a0fd8a 100644 --- a/addons/website/static/src/snippets/s_countdown/000.js +++ b/addons/website/static/src/snippets/s_countdown/000.js @@ -208,7 +208,7 @@ const CountdownWidget = publicWidget.Widget.extend({ $(canvas).toggleClass('d-none', hideCountdown); if (hideCountdown) { - return; + continue; } // Draw canvas elements