(exitTabNumber, nestedExitTabNumber)
| 283 | |
| 284 | // Set the current editing exit tab based off paramter number, its child, within the correct range (0 < # of exit Tabs - 1 // Secondary: 0 < # of child exit Tabs) |
| 285 | const changeEditingExitTab = function(exitTabNumber, nestedExitTabNumber) { |
| 286 | currentlySelectedExitTabIndex = clamp(exitTabNumber, 0, post.panels[currentlySelectedPanelIndex].exitTabs.length - 1); |
| 287 | currentlySelectedNestedExitTabIndex = (nestedExitTabNumber != null) ? clamp(nestedExitTabNumber, -1, post.panels[currentlySelectedPanelIndex].exitTabs[currentlySelectedExitTabIndex].nestedExitTabs.length - 1) : -1; |
| 288 | updateForm(); |
| 289 | }; |
| 290 | |
| 291 | // Add a new shield to the current panel's sign, update the shield subform, and redraw the sign. |
| 292 | const newShield = function() { |
no test coverage detected