From b91fdb5f4ca39cd5c72c29afcff61b55fcdcc92b Mon Sep 17 00:00:00 2001 From: cuom1999 Date: Sat, 12 Nov 2022 21:28:36 -0600 Subject: [PATCH] Fix infinite loop --- templates/contest/media-js.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/contest/media-js.html b/templates/contest/media-js.html index 044723e..e3cb938 100644 --- a/templates/contest/media-js.html +++ b/templates/contest/media-js.html @@ -56,7 +56,7 @@ } } - function renew_filter(excludeBox=null) { + function renew_filter(need_update=true) { var checkboxes = [ '#show-organizations-checkbox', '#show-fullnames-checkbox', @@ -86,7 +86,7 @@ to_update = true; } } - if (to_update) { + if (to_update && need_update) { update_ranking(); } } @@ -125,7 +125,7 @@ success: function(HTML) { $('#users-table').html(HTML); highlightFirstSolve(); - renew_filter("#show-virtual-checkbox"); + renew_filter(false); $('#loading-gif').hide(); if (!virtual && !friend) { get_initial_rank();