Use parent div as clickable area for checkboxes in dropdowns

This commit is contained in:
fipwmaqzufheoxq92ebc 2020-09-12 14:22:15 +02:00
parent 9f9acb7f1c
commit ef2e5dddef
No known key found for this signature in database
GPG Key ID: F4DF989490C2ADB7

View File

@ -696,3 +696,10 @@ $(document).on("click", "a.btn.link-return", function(e)
location.href = U(link); location.href = U(link);
} }
}); });
$('.dropdown-item').has('.form-check input[type=checkbox]').on('click', function (e) {
if($(e.target).is('div.form-check') || $(e.target).is('div.dropdown-item'))
{
$(e.target).find('input[type=checkbox]').click();
}
})