()
| 212 | } |
| 213 | |
| 214 | const removeSubPanel = function() { |
| 215 | const sign = post.panels[currentlySelectedPanelIndex].sign; |
| 216 | if (sign.subPanels.length > 1) { |
| 217 | sign.deleteSubPanel((sign.subPanels.length - 2)); |
| 218 | currentlySelectedSubPanelIndex-- |
| 219 | updateForm(); |
| 220 | redraw(); |
| 221 | } |
| 222 | } |
| 223 | |
| 224 | // Duplicate the current subpanel, set the editing to that subpanel, update the form, and redraw. |
| 225 | const duplicateSubPanel = function() { |
nothing calls this directly
no test coverage detected