if (event.which == 1 || (navigator.appVersion.match(/\bMSIE\b/))) {
var tr = target.closest('.hascontextmenu').first();
if (tr.length > 0) {
- // a row was clicked, check if the click was on checkbox
+ // a row was clicked
+ if (target.is('td.checkbox')) {
+ // the td containing the checkbox was clicked, toggle the checkbox
+ target = target.find('input').first();
+ target.prop("checked", !target.prop("checked"));
+ }
if (target.is('input')) {
// a checkbox may be clicked
if (target.prop('checked')) {