diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2019-01-20 07:34:45 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2019-01-20 07:34:45 +0000 |
commit | 2a7d82fd8fb785210abffdaee8dfc9944deb1ea6 (patch) | |
tree | f7ef6af57f182f56131231d463dd661ea6179dbb /public | |
parent | dd564f08e79a1223bec5f9b2d374019cf9cb562b (diff) | |
download | redmine-2a7d82fd8fb785210abffdaee8dfc9944deb1ea6.tar.gz redmine-2a7d82fd8fb785210abffdaee8dfc9944deb1ea6.zip |
Accidentally clicking next to the checkbox breaks issue selection (#30236).
git-svn-id: http://svn.redmine.org/redmine/trunk@17830 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'public')
-rw-r--r-- | public/javascripts/context_menu.js | 7 |
1 files changed, 6 insertions, 1 deletions
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')) { |