From c9966ed9999947744e1c52eeb6add9bc8f9b0312 Mon Sep 17 00:00:00 2001 From: miguel angel rasteu Date: Wed, 11 Oct 2023 16:16:22 +0200 Subject: [PATCH] #12132 Limit tips --- pandora_console/include/javascript/tipsWindow.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandora_console/include/javascript/tipsWindow.js b/pandora_console/include/javascript/tipsWindow.js index 94d28c9339..c68e7c9b05 100644 --- a/pandora_console/include/javascript/tipsWindow.js +++ b/pandora_console/include/javascript/tipsWindow.js @@ -134,8 +134,9 @@ function render_counter() { $(".counter-tips img:eq(0)").after( "" ); + var limitRound = totalTips > 28 ? 28 : totalTips; if (totalTips > 1) { - for (let i = 1; i <= totalTips - 1; i++) { + for (let i = 1; i <= limitRound - 1; i++) { $(".count-round-tip:eq(0)").after( "" );