Fix infinite loop
This commit is contained in:
parent
affcca39f1
commit
b91fdb5f4c
1 changed files with 3 additions and 3 deletions
|
@ -56,7 +56,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function renew_filter(excludeBox=null) {
|
function renew_filter(need_update=true) {
|
||||||
var checkboxes = [
|
var checkboxes = [
|
||||||
'#show-organizations-checkbox',
|
'#show-organizations-checkbox',
|
||||||
'#show-fullnames-checkbox',
|
'#show-fullnames-checkbox',
|
||||||
|
@ -86,7 +86,7 @@
|
||||||
to_update = true;
|
to_update = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (to_update) {
|
if (to_update && need_update) {
|
||||||
update_ranking();
|
update_ranking();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -125,7 +125,7 @@
|
||||||
success: function(HTML) {
|
success: function(HTML) {
|
||||||
$('#users-table').html(HTML);
|
$('#users-table').html(HTML);
|
||||||
highlightFirstSolve();
|
highlightFirstSolve();
|
||||||
renew_filter("#show-virtual-checkbox");
|
renew_filter(false);
|
||||||
$('#loading-gif').hide();
|
$('#loading-gif').hide();
|
||||||
if (!virtual && !friend) {
|
if (!virtual && !friend) {
|
||||||
get_initial_rank();
|
get_initial_rank();
|
||||||
|
|
Loading…
Reference in a new issue