Allow clicking on checkboxes for batch update

This commit is contained in:
Sebastian Serth
2023-11-24 16:41:49 +01:00
parent 1fb5e45202
commit 0bd7c93d65
2 changed files with 10 additions and 6 deletions

View File

@ -134,6 +134,10 @@ $(document).on('turbolinks:load', function () {
class: 'form-check-input',
});
td.on('click', function (event) {
if (event.target !== this) {
// We don't want to trigger the handler when clicking directly on the checkbox.
return;
}
event.preventDefault();
checkbox.prop('checked', !checkbox.prop('checked'));
});