Skip to content

Commit

Permalink
Update app.js for empty checkboxes on student-studies
Browse files Browse the repository at this point in the history
  • Loading branch information
JMHReif committed Nov 7, 2023
1 parent 85ed686 commit 0034dea
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dist/app.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/license.js

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,12 @@ const postApplication = function () {
const jsonData = $('#edu-application').serializeArray()
.reduce(function (a, x) {
if (x.name == "student-studies") {
a[x.name] = checkboxes;
checkboxes.push(x.value);
} else {
a[x.name] = x.value;
}
return a;
}, {});
}, {'student-studies': checkboxes});

/* Return ajax for callback chaining */
return $.ajax
Expand Down
2 changes: 1 addition & 1 deletion publish.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

fapp = flask.Flask('pub', template_folder='.')

API_BASE_URL = {"dev": "https://34um3gz3l1.execute-api.us-east-1.amazonaws.com/dev/",
API_BASE_URL = {"dev": "https://k3de6zcmw7.execute-api.us-east-1.amazonaws.com/",
"prod": "https://1gft0dd1s7.execute-api.us-east-1.amazonaws.com/"}

LANDING_PAGE = {"dev": 102247,
Expand Down

0 comments on commit 0034dea

Please sign in to comment.