Fix infinite loop

This commit is contained in:
cuom1999 2022-11-12 21:28:36 -06:00
parent affcca39f1
commit b91fdb5f4c

View file

@ -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();