Gui improvements and ideas
This commit is contained in:
parent
3f4c7d17bf
commit
2ae0b55e42
54 changed files with 639 additions and 237 deletions
8
app/javascript/controllers/autosubmit_controller.js
Normal file
8
app/javascript/controllers/autosubmit_controller.js
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
import { Controller } from "@hotwired/stimulus"
|
||||
|
||||
// Connects to data-controller="autosubmit"
|
||||
export default class extends Controller {
|
||||
connect() {
|
||||
this.element.addEventListener('change', event => event.target.form.requestSubmit());
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue