send telegram
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
(() => {
|
||||
const contactForm = document.getElementById('contactForm')
|
||||
const contactSuccess = document.getElementById('contactSuccess')
|
||||
const formConfig = window.test1ContactsForm || null
|
||||
|
||||
if (!contactForm || !contactSuccess) {
|
||||
return
|
||||
@@ -10,6 +9,8 @@
|
||||
contactForm.addEventListener('submit', async event => {
|
||||
event.preventDefault()
|
||||
|
||||
const formConfig = window.test1ContactsForm || null
|
||||
|
||||
if (!formConfig?.ajaxUrl || !formConfig?.action || !formConfig?.nonce) {
|
||||
window.alert('Форма временно недоступна. Обновите страницу и попробуйте снова.')
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user