diff options
author | HombreLaser <sebastian-440@live.com> | 2024-02-26 15:40:55 -0600 |
---|---|---|
committer | HombreLaser <sebastian-440@live.com> | 2024-02-26 15:40:55 -0600 |
commit | 9e38502edec81c47a54641186d888f191ed999f0 (patch) | |
tree | ca24af8b32148d1792250fff1b9d41b5ceb78c7b /static/js/controllers/base_controller.js | |
parent | adb6f7e9e73716e58529d96540f204e5e0825179 (diff) |
Add pagination handling
Diffstat (limited to 'static/js/controllers/base_controller.js')
-rw-r--r-- | static/js/controllers/base_controller.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/static/js/controllers/base_controller.js b/static/js/controllers/base_controller.js index 6caa9dd..2ef359c 100644 --- a/static/js/controllers/base_controller.js +++ b/static/js/controllers/base_controller.js @@ -9,9 +9,8 @@ export class BaseController { this.parser = new DOMParser(); } - async submit(event, route) { + async submit(event, route, form = new FormData(event.target)) { event.preventDefault(); - const form = new FormData(event.target); try { const response = await fetch(route, { method: "POST", body: form }); |