Fix batch update for exercises

This fixes a regression from 8a055a0d
This commit is contained in:
Sebastian Serth
2023-11-20 22:33:58 +01:00
parent aeb2bb2542
commit c9ed9bd0cf

View File

@ -128,9 +128,10 @@ $(document).on('turbolinks:load', function () {
var buildCheckboxes = function () {
$('tbody tr').each(function (index, element) {
var td = $('td.public', element);
var checkbox = $('<input class="form-check-input">', {
var checkbox = $('<input>', {
checked: td.data('value'),
type: 'checkbox'
type: 'checkbox',
class: 'form-check-input',
});
td.on('click', function (event) {
event.preventDefault();