PageSourceSearch

https://powercoach.ai/assets/controllers/auto_submit_controller-37e41ad0.js

js powercoach.ai collected 2026-10-05 13:58:29 UTC 328 bytes, 10 lines download raw bytes

1import { Controller } from "@hotwired/stimulus"
2
3// Submits the nearest form when an input changes.
4// Usage: <select data-action="change->auto-submit#submit">
5export default class extends Controller {
6  submit(event) {
7    const form = event.target.form || this.element.closest("form")
8    if (form) form.requestSubmit()
9  }
10}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.