Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bootstrap_modal_forms/static/js/bootstrap5.modal.forms.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const isFormValid = function (settings, callback) {
btnSubmit.disabled = true;
fetch(form.action, {
headers: headers,
method: form.method,
method: form.getAttribute('method'),
body: new FormData(form),
}).then(res => {
return res.text();
Expand Down Expand Up @@ -98,7 +98,7 @@ const submitForm = function (settings) {
formData.append("asyncUpdate", "True");

fetch(form.action, {
method: form.method,
method: form.getAttribute('method'),
body: formData,
}).then(res => {
return res.text();
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.