0001-fix_multiple_selection.patch

Takashi Kato, 2022-07-21 15:15

Download (845 Bytes)

View differences:

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