This commit is contained in:
Christopher Cookman 2025-09-01 00:49:15 -06:00
parent 791a7aab31
commit 1a1e7f5cf2

View file

@ -98,10 +98,10 @@
<% Object.keys(doorList).forEach(function(door) { %>
<div>
<label>
<input type="checkbox" name="doors[<%= door %>]" value="1" <% if (doorsList[door] &&
doorsList[door]==1) { %> checked <% } %> >
<input type="checkbox" name="doors[<%= door %>]" value="1" <% if (doorList[door] &&
doorList[door]==1) { %> checked <% } %> >
<%= door %>
<% doorsList[door] %>
<% doorList[door] %>
</label>
</div>
<% }) %>
@ -122,7 +122,7 @@
EndDate: formData.get('EndDate'),
doors: {}
};
<% Object.keys(doorsList).forEach(function (door) { %>
<% Object.keys(doorList).forEach(function (door) { %>
data.doors['<%= door %>'] = formData.get('doors[<%= door %>]') ? 1 : 0;
<% }) %>
fetch(form.action, {