Defect #37481 ยป 0001-fix_multiple_selection.patch
| public/javascripts/context_menu.js | ||
|---|---|---|
| 52 | 52 |
if (lastSelected.length) {
|
| 53 | 53 |
var toggling = false; |
| 54 | 54 |
$('.hascontextmenu').each(function(){
|
| 55 |
if (toggling || $(this).is(tr)) {
|
|
| 55 |
$elm = $(this) |
|
| 56 |
if (!$elm.is(lastSelected) && (toggling || $elm.is(tr))) {
|
|
| 56 | 57 |
contextMenuAddSelection($(this)); |
| 57 | 58 |
contextMenuClearDocumentSelection(); |
| 58 | 59 |
} |
| 59 |
if ($(this).is(tr) || $(this).is(lastSelected)) {
|
|
| 60 |
if ($elm.is(lastSelected) !== $elm.is(tr)) {
|
|
| 60 | 61 |
toggling = !toggling; |
| 61 | 62 |
} |
| 62 | 63 |
}); |