1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-03-10 19:23:06 +00:00

Merged r21738 from trunk to 5.0-stable (#37481).

git-svn-id: https://svn.redmine.org/redmine/branches/5.0-stable@21760 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA 2022-08-06 04:39:34 +00:00
parent dd1e8c6c39
commit 827239000a

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