()
| 138 | * Redraw the page. |
| 139 | */ |
| 140 | const deletePanel = function() { |
| 141 | post.deletePanel(currentlySelectedPanelIndex); |
| 142 | if (currentlySelectedPanelIndex > 0) { |
| 143 | currentlySelectedPanelIndex--; |
| 144 | } |
| 145 | if (post.panels.length == 0) { |
| 146 | newPanel(); |
| 147 | } else { |
| 148 | updateForm(); |
| 149 | redraw(); |
| 150 | } |
| 151 | }; |
| 152 | |
| 153 | /** |
| 154 | * Shift the currently selected panel left. |
nothing calls this directly
no test coverage detected