mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-31 11:37:14 +00:00
Fix the unintentional selection of rows with the context menu (#37481).
Patch by Takashi Kato. git-svn-id: https://svn.redmine.org/redmine/trunk@21738 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
3164895f69
commit
15dcf9553e
@ -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;
|
||||
}
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user