diff options
author | Go MAEDA <maeda@farend.jp> | 2022-08-06 04:40:31 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2022-08-06 04:40:31 +0000 |
commit | 5603fbff8258e274bae0df77a03152505d12bbbd (patch) | |
tree | ed85e030e43538a5b374ce23d35f635450d02e6a /public | |
parent | fe61a173802141c0a4026c6ad052bcb071b62861 (diff) | |
download | redmine-5603fbff8258e274bae0df77a03152505d12bbbd.tar.gz redmine-5603fbff8258e274bae0df77a03152505d12bbbd.zip |
Merged r21738 from trunk to 4.2-stable (#37481).
git-svn-id: https://svn.redmine.org/redmine/branches/4.2-stable@21761 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'public')
-rw-r--r-- | public/javascripts/context_menu.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/public/javascripts/context_menu.js b/public/javascripts/context_menu.js index 55d77bd77..28771a25a 100644 --- a/public/javascripts/context_menu.js +++ b/public/javascripts/context_menu.js @@ -52,11 +52,12 @@ function contextMenuClick(event) { if (lastSelected.length) { var toggling = false; $('.hascontextmenu').each(function(){ - if (toggling || $(this).is(tr)) { + $elm = $(this) + if (!$elm.is(lastSelected) && (toggling || $elm.is(tr))) { contextMenuAddSelection($(this)); contextMenuClearDocumentSelection(); } - if ($(this).is(tr) || $(this).is(lastSelected)) { + if ($elm.is(lastSelected) !== $elm.is(tr)) { toggling = !toggling; } }); |