BONS#40391 Clickhandler voor checkboxen op tabellen *veel* efficienter plaatsen
svn path=/Website/branches/v2016.3/; revision=33696
This commit is contained in:
@@ -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'));
|
||||
|
||||
Reference in New Issue
Block a user