MCPcopy Create free account
hub / github.com/JKPotato-Computer/SignMaker / changeEditingPanel

Function changeEditingPanel

js/main copy.js:177–186  ·  view source on GitHub ↗
(number)

Source from the content-addressed store, hash-verified

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.

Callers 1

updateFormFunction · 0.70

Calls 1

updateFormFunction · 0.70

Tested by

no test coverage detected