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