Commit 28a7fc31 authored by jplang's avatar jplang

Accidentally clicking next to the checkbox breaks issue selection (#30236).

git-svn-id: https://svn.redmine.org/redmine/trunk@17830 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 31f1255b
...@@ -30,7 +30,12 @@ function contextMenuClick(event) { ...@@ -30,7 +30,12 @@ function contextMenuClick(event) {
if (event.which == 1 || (navigator.appVersion.match(/\bMSIE\b/))) { if (event.which == 1 || (navigator.appVersion.match(/\bMSIE\b/))) {
var tr = target.closest('.hascontextmenu').first(); var tr = target.closest('.hascontextmenu').first();
if (tr.length > 0) { 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')) { if (target.is('input')) {
// a checkbox may be clicked // a checkbox may be clicked
if (target.prop('checked')) { if (target.prop('checked')) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment