mirror of
https://github.com/grocy/grocy.git
synced 2026-04-07 05:16:15 +02:00
Use parent div as clickable area for checkboxes in dropdowns
This commit is contained in:
parent
9f9acb7f1c
commit
ef2e5dddef
|
|
@ -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();
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user