Skip to content

Commit

Permalink
Use requestSubmit to be able to hijack the submit
Browse files Browse the repository at this point in the history
  • Loading branch information
chapterjason committed Dec 20, 2024
1 parent ed8e55f commit f61da01
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion assets/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ class App {
const deleteFormAction = actionElement.getAttribute('formaction');
const deleteForm = document.querySelector('#delete-form');
deleteForm.setAttribute('action', deleteFormAction);
deleteForm.submit();
deleteForm.requestSubmit();
});
});
});
Expand Down
4 changes: 2 additions & 2 deletions public/app.1ecd6d7a.js → public/app.91742734.js

Large diffs are not rendered by default.

File renamed without changes.
4 changes: 2 additions & 2 deletions public/entrypoints.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"/app.fc5841f9.css"
],
"js": [
"/app.1ecd6d7a.js"
"/app.91742734.js"
]
},
"form": {
Expand Down Expand Up @@ -66,7 +66,7 @@
"/field-text-editor.750725ec.css"
],
"js": [
"/field-text-editor.cb6de4f5.js"
"/field-text-editor.0c19054a.js"
]
},
"login": {
Expand Down
2 changes: 2 additions & 0 deletions public/field-text-editor.0c19054a.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions public/field-text-editor.0c19054a.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/*! @license DOMPurify 3.2.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.0/LICENSE */
1 change: 0 additions & 1 deletion public/field-text-editor.cb6de4f5.js

This file was deleted.

4 changes: 2 additions & 2 deletions public/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"app.css": "app.fc5841f9.css",
"app.js": "app.1ecd6d7a.js",
"app.js": "app.91742734.js",
"form.js": "form.bcec6c2a.js",
"page-layout.js": "page-layout.3347892e.js",
"page-color-scheme.js": "page-color-scheme.30cb23c2.js",
Expand All @@ -13,7 +13,7 @@
"field-slug.js": "field-slug.df11f109.js",
"field-textarea.js": "field-textarea.74319bb1.js",
"field-text-editor.css": "field-text-editor.750725ec.css",
"field-text-editor.js": "field-text-editor.cb6de4f5.js",
"field-text-editor.js": "field-text-editor.0c19054a.js",
"login.js": "login.7259f5de.js",
"fonts/fa-solid-900.ttf": "fonts/fa-solid-900.ad1782c7.ttf",
"fonts/fa-brands-400.ttf": "fonts/fa-brands-400.26b80c88.ttf",
Expand Down

0 comments on commit f61da01

Please sign in to comment.