Remove obsolute form-submit and form-error.
This commit is contained in:
parent
a7034badd0
commit
31f67a58b0
2 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);
|
||||
|
|
|
|||
|
|
@ -65,8 +65,6 @@ $colors: (
|
|||
button-text-hover: $white,
|
||||
button-disabled: $grey,
|
||||
|
||||
form-error: $red,
|
||||
|
||||
mark-highlight: $red,
|
||||
mark-bg: $yellow,
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue