(number)
| 175 | * Update the form to reflect the newly selected panel. |
| 176 | */ |
| 177 | const changeEditingPanel = function(number) { |
| 178 | if ((number >= 0) && (number < post.panels.length)) { |
| 179 | currentlySelectedPanelIndex = number; |
| 180 | } else if (number > post.panels.length) { |
| 181 | currentlySelectedPanelIndex = (post.panels.length - 1); |
| 182 | } else { |
| 183 | currentlySelectedPanelIndex = 0; |
| 184 | } |
| 185 | updateForm(); |
| 186 | }; |
| 187 | |
| 188 | /** |
| 189 | * Add a new shield to the current panel's sign. |
no test coverage detected