summaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2022-01-11 00:37:21 +0000
committerGo MAEDA <maeda@farend.jp>2022-01-11 00:37:21 +0000
commitc1824742060eadda6a93da3e64a1084e28ac2d81 (patch)
treeb164d58bb49cacd6ef86e8a16f493c635849a509 /public
parent55727d3f4c546264cb582fa0e2efb5f86f5d3201 (diff)
downloadredmine-c1824742060eadda6a93da3e64a1084e28ac2d81.tar.gz
redmine-c1824742060eadda6a93da3e64a1084e28ac2d81.zip
Merged r21334 from trunk to 4.1-stable (#36363).
git-svn-id: http://svn.redmine.org/redmine/branches/4.1-stable@21359 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'public')
-rw-r--r--public/javascripts/context_menu.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/public/javascripts/context_menu.js b/public/javascripts/context_menu.js
index b978fe41c..cfe1a1008 100644
--- a/public/javascripts/context_menu.js
+++ b/public/javascripts/context_menu.js
@@ -46,6 +46,7 @@ function contextMenuClick(event) {
} else {
if (event.ctrlKey || event.metaKey) {
contextMenuToggleSelection(tr);
+ contextMenuClearDocumentSelection();
} else if (event.shiftKey) {
lastSelected = contextMenuLastSelected();
if (lastSelected.length) {
@@ -53,6 +54,7 @@ function contextMenuClick(event) {
$('.hascontextmenu').each(function(){
if (toggling || $(this).is(tr)) {
contextMenuAddSelection($(this));
+ contextMenuClearDocumentSelection();
}
if ($(this).is(tr) || $(this).is(lastSelected)) {
toggling = !toggling;
@@ -191,7 +193,6 @@ function contextMenuToggleSelection(tr) {
function contextMenuAddSelection(tr) {
tr.addClass('context-menu-selection');
contextMenuCheckSelectionBox(tr, true);
- contextMenuClearDocumentSelection();
}
function contextMenuRemoveSelection(tr) {