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