Remove obsolute form-submit and form-error.
This commit is contained in:
parent
a7034badd0
commit
31f67a58b0
4 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,
|
||||
|
||||
|
|
|
|||
|
|
@ -12,5 +12,5 @@
|
|||
<input type="text" id="edit-subject" name="subject" placeholder="{{ i18n "contact_subject_placeholder" }}" required>
|
||||
<label for="edit-message">{{ i18n "contact_message" }}</label>
|
||||
<textarea id="edit-message" name="message" rows="5" placeholder="{{ i18n "contact_message_placeholder" }}" required></textarea>
|
||||
<button type="submit" name="submit" class="form-submit" disabled>{{ i18n "contact_submit" }}</button>
|
||||
<button type="submit" name="submit" disabled>{{ i18n "contact_submit" }}</button>
|
||||
</form>
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
<form id="search-form" class="search-form" action="#" method="post" accept-charset="UTF-8" role="search">
|
||||
<label for="query" class="visually-hidden">{{ i18n "search_title" }}</label>
|
||||
<input type="search" id="query" name="query" class="search-text" placeholder="{{ i18n "search_placeholder" }}" maxlength="128">
|
||||
<button type="submit" name="submit" class="form-submit" >{{ i18n "search_title" }}</button>
|
||||
<button type="submit" name="submit">{{ i18n "search_title" }}</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue