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
This commit is contained in:
Go MAEDA
2022-08-06 04:40:31 +00:00
parent fe61a17380
commit 5603fbff82

View File

@@ -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;
}
});