BONS#40391 Clickhandler voor checkboxen op tabellen *veel* efficienter plaatsen

svn path=/Website/branches/v2016.3/; revision=33696
This commit is contained in:
Jos Groot Lipman
2017-05-04 14:45:52 +00:00
parent 9535ebf294
commit 6f76cc8031

View File

@@ -104,7 +104,7 @@ $(document).ready(function() {
}
$(document).ready(function() {
// Op hele TD klikken voor checkbox
$('td:has(:checkbox.multiselect)').click(function (e) {
$('table').on('click', 'td:has(:checkbox.multiselect)', function (e) {
if (!$(e.target).is('input'))
{
$('input:checkbox', this).prop('checked',!$('input:checkbox', this).prop('checked'));
@@ -112,7 +112,7 @@ $(document).ready(function() {
return false;
}
});
$('th.multiselect:has(:checkbox)').click(function (e) {
$('table').on('click', 'th.multiselect:has(:checkbox)', function (e) {
if (!$(e.target).is('input'))
{
$('input:checkbox', this).prop('checked',!$('input:checkbox', this).prop('checked'));