summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDramixDw <rve@odoo.com>2020-06-11 07:06:28 +0000
committerDramixDw <rve@odoo.com>2020-06-18 09:32:04 +0000
commit2feaee191bbbef33c9a6eb99a96592669f17f729 (patch)
tree6c39c217bbc53409e9e65d39a755d8e2ff9be5fb
parent5a6d4c493248bfd8b55c8abee175b21f414de0c6 (diff)
[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) <qsm@odoo.com>
-rw-r--r--addons/website/static/src/snippets/s_countdown/000.js2
1 files changed, 1 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 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