overleaf/services/web/frontend/js/directives/autoSubmitForm.js

10 lines
185 B
JavaScript
Raw Normal View History

define(['base'], function(App) {
App.directive('autoSubmitForm', function() {
return {
link(scope, element) {
element.submit() // Runs on load
}
}
})
})