|
79 | 79 | const entry = event.currentTarget;
|
80 | 80 | const overlay = entry.parentElement;
|
81 | 81 | const grid = overlay.previousSibling;
|
| 82 | + const sideBar = grid.previousSibling; |
82 | 83 |
|
83 | 84 | let relatedElements;
|
84 | 85 | if ('rotationPosition' in entry.dataset) {
|
85 |
| - relatedElements = grid.querySelectorAll( |
86 |
| - '[data-y-position="' + entry.dataset.rotationPosition + '"]' |
| 86 | + relatedElements = Array.from( |
| 87 | + grid.querySelectorAll('[data-y-position="' + entry.dataset.rotationPosition + '"]') |
87 | 88 | );
|
| 89 | + |
| 90 | + relatedElements.push(sideBar.childNodes[Number(entry.dataset.rotationPosition)]); |
88 | 91 | } else {
|
89 | 92 | relatedElements = overlay.querySelectorAll(
|
90 | 93 | '[data-rotation-position="' + entry.dataset.entryPosition + '"]'
|
|
101 | 104 | const entry = event.currentTarget;
|
102 | 105 | const overlay = entry.parentElement;
|
103 | 106 | const grid = overlay.previousSibling;
|
| 107 | + const sideBar = grid.previousSibling; |
104 | 108 |
|
105 | 109 | let relatedElements;
|
106 | 110 | if ('rotationPosition' in entry.dataset) {
|
107 |
| - relatedElements = grid.querySelectorAll( |
108 |
| - '[data-y-position="' + entry.dataset.rotationPosition + '"]' |
| 111 | + relatedElements = Array.from( |
| 112 | + grid.querySelectorAll('[data-y-position="' + entry.dataset.rotationPosition + '"]') |
109 | 113 | );
|
| 114 | + relatedElements.push(sideBar.childNodes[Number(entry.dataset.rotationPosition)]); |
110 | 115 | } else {
|
111 | 116 | relatedElements = overlay.querySelectorAll(
|
112 | 117 | '[data-rotation-position="' + entry.dataset.entryPosition + '"]'
|
|
119 | 124 | }
|
120 | 125 | }
|
121 | 126 |
|
| 127 | + |
| 128 | + |
122 | 129 | Icinga.Behaviors = Icinga.Behaviors || {};
|
123 | 130 |
|
124 | 131 | Icinga.Behaviors.NotificationsSchedule = NotificationsSchedule;
|
|
0 commit comments