From: Jean-Philippe Lang Date: Thu, 21 Feb 2019 16:18:44 +0000 (+0000) Subject: Merged r17830 to 4.0-stable (#30236). X-Git-Tag: 4.0.2~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a3f86f31b51982d3581c72ba48fdfaa32f454dba;p=redmine.git Merged r17830 to 4.0-stable (#30236). git-svn-id: http://svn.redmine.org/redmine/branches/4.0-stable@17892 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/public/javascripts/context_menu.js b/public/javascripts/context_menu.js index 9bc64b171..ed96ee900 100644 --- a/public/javascripts/context_menu.js +++ b/public/javascripts/context_menu.js @@ -30,7 +30,12 @@ function contextMenuClick(event) { 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')) {