overleaf/services/web/public/src/directives/autoSubmitForm.js
Ersun Warncke 330f878085 Merge pull request #1378 from sharelatex/ew-post-logout
POST logout instead of GET

GitOrigin-RevId: b502a6ed945acd336d1a921e5c4c5433d8b7c7b7
2019-01-15 16:48:00 +00:00

9 lines
185 B
JavaScript

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