()
| 172 | If no panel is found, create a new one. |
| 173 | */ |
| 174 | const deletePanel = function() { |
| 175 | post.deletePanel(currentlySelectedPanelIndex); |
| 176 | if (currentlySelectedPanelIndex > 0) { |
| 177 | currentlySelectedPanelIndex--; |
| 178 | } |
| 179 | if (post.panels.length == 0) { |
| 180 | newPanel(); |
| 181 | } else { |
| 182 | updateForm(); |
| 183 | redraw(); |
| 184 | } |
| 185 | }; |
| 186 | |
| 187 | // Shift a panel to the left, and redraw. |
| 188 | const shiftLeft = function() { |
nothing calls this directly
no test coverage detected