Fix ranking checkboxes
This commit is contained in:
parent
fb8ffa2846
commit
4cb2eaeaf1
1 changed files with 3 additions and 8 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue