Commit 99c0ba60 authored by Mike Greiling's avatar Mike Greiling

Remove unused vestigial form behavior

parent 8dccc22a
......@@ -223,13 +223,6 @@ document.addEventListener('DOMContentLoaded', () => {
localTimeAgo($('abbr.timeago, .js-timeago'), true);
// Form submitter
$('.trigger-submit').on('change', function triggerSubmitCallback() {
$(this)
.parents('form')
.submit();
});
// Disable form buttons while a form is submitting
$body.on('ajax:complete, ajax:beforeSend, submit', 'form', function ajaxCompleteCallback(e) {
const $buttons = $('[type="submit"], .js-disable-on-submit', this).not('.js-no-auto-disable');
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment