Fix ranking checkboxes

This commit is contained in:
cuom1999 2021-10-19 18:13:56 -05:00
parent fb8ffa2846
commit 4cb2eaeaf1

View file

@ -295,8 +295,9 @@
for (var i of checkboxes) {
var $box = $(i);
if ($box.is(':checked')) {
$box.prop('checked', false);
$box.click();
$box.click();
$box.prop('checked', true);
}
}
}
@ -380,13 +381,7 @@
{% endif %}
$('#show-total-score-checkbox').click(function() {
let checked = $('#show-total-score-checkbox').is(':checked');
if (checked) {
$('.problem-score-col').hide();
}
else {
$('.problem-score-col').show();
}
$('.problem-score-col').toggle();
})
highlightFirstSolve();