Skip to content

Commit

Permalink
Update structure form id
Browse files Browse the repository at this point in the history
- Closes #69
  • Loading branch information
Charles Loder committed Apr 14, 2023
1 parent fb4d206 commit d85e31e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/_includes/structure-modal.njk
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<code>\t</code>
for a tab
</p>
<form id="step-1-form">
<form id="structure-form">
<div class="form-group">
<div class="container-sm">
<div
Expand Down
4 changes: 2 additions & 2 deletions src/assets/js/structure.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ const actionBtn = document.querySelector("#action-btn");
// event listeners
actionBtn.addEventListener("click", async () => {
try {
const options = getInputVals("form");
const options = getInputVals("#structure-form");
loadingSpinner.toggleSpinnerOn();
output.value = await structure(input.value || input.placeholder, options);
loadingSpinner.toggleSpinnerOff();
Expand All @@ -111,4 +111,4 @@ actionBtn.addEventListener("click", async () => {
});

// on load
loadOptions(getInputVals("form"), defaultOpts);
loadOptions(getInputVals("#structure-form"), defaultOpts);

0 comments on commit d85e31e

Please sign in to comment.