Files
openfoodnetwork/app/webpacker/packs/admin.js
David Cook 78e2311f59 Add keyboard shortcut to submit form in admin
Unfortunately it doesn't work for Angular forms. I'm not sure if there's a way to trigger an angular submit.
2023-12-29 14:57:59 +11:00

20 lines
433 B
JavaScript

import "controllers";
import "channels";
import "@hotwired/turbo";
import "../js/hotkeys";
import "../js/mrujs";
import "../js/matomo";
import "../js/moment";
import bigDecimal from "js-big-decimal";
window.bigDecimal = bigDecimal;
import debounced from "debounced";
debounced.initialize({ input: { wait: 300 } });
import Trix from "trix";
document.addEventListener("trix-file-accept", (event) => {
event.preventDefault();
});