Remove obsolute form-submit and form-error.
This commit is contained in:
parent
a7034badd0
commit
31f67a58b0
1 changed files with 4 additions and 6 deletions
|
|
@ -7,10 +7,10 @@
|
|||
|
||||
'use strict';
|
||||
|
||||
const form = document.querySelector('.contact-form');
|
||||
const button = form.querySelector('.form-submit');
|
||||
const action = form.getAttribute('data-protect');
|
||||
const body = document.querySelector('body');
|
||||
const form = document.querySelector('.contact-form');
|
||||
const button = form.querySelector('[type=submit]');
|
||||
const action = form.getAttribute('data-protect');
|
||||
|
||||
function activateForm() {
|
||||
form.setAttribute('action', action);
|
||||
|
|
|
|||
Loading…
Reference in a new issue