PageSourceSearch

https://craneburg.ru/assets/app/js/form.js

js craneburg.ru collected 2026-10-06 19:14:53 UTC 1,167 bytes, 31 lines download raw bytes

1$(document).on('af_complete', function(event, response) {
2     var form = response.form;
3    var fields = {
4        name: "Имя",
5        email: "Email",
6        phone: "Телефон"
7     };
8    if (response.success) {
9        // Скрываем форму и показываем блок!
10        form.hide();
11        
12        $("#success-response").fadeIn(700);
13    } else {
14        for (var prop in response.data) {
15            // Выводим сообщение через jGrowl для всех полей с ошибками.
16            // Если хотите, чтобы сообщения оставались, добавьте вторым параметром true
17            AjaxForm.Message.error("Заполните поле '"+fields[prop]+"'");
18              response.message='';
19    $('#jGrowl').hide();
20        }
21        
22    }
23    // Отменяем вывод стандартного сообщения
24  
25});
26// Вешаем обработчик
27$(document).on('click', '#onemore-feedback', function(e) {
28    $("#success-response").fadeOut();
29    $("#contactform").fadeIn();
30    e.preventDefault();
31});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.