[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>
This commit is contained in:
@@ -208,7 +208,7 @@ const CountdownWidget = publicWidget.Widget.extend({
|
||||
|
||||
$(canvas).toggleClass('d-none', hideCountdown);
|
||||
if (hideCountdown) {
|
||||
return;
|
||||
continue;
|
||||
}
|
||||
|
||||
// Draw canvas elements
|
||||
|
||||
Reference in New Issue
Block a user