PageSourceSearch

https://stop-dolg.ru/local/templates/main2019/components/mh/iblock…/popup.request.test_bankruptcy/script.js

js stop-dolg.ru collected 2026-10-06 04:01:43 UTC 1,328 bytes, 53 lines download raw bytes

1$(document).delegate('form[data-form-test-bankruptcy]', 'submit', function(e){
2	e.preventDefault();
3
4	var $form = $(this),
5		$errors = $('[data-errors]', $form),
6		$msgs = $('[data-msg]', $form);
7
8	$('.error', $form).removeClass('error');
9	$errors.empty().hide();
10	$msgs.empty().hide();
11
12	var $inputSign = $('<input type="hidden" name="sign_component_params" value="'+$form.data('sign')+'">').appendTo($form);
13	$form.find('[name=sessid]').val(BX.bitrix_sessid());
14
15	$form.disAjax('/local/components/mh/iblockelement.form.ajax/ajax.php', {
16		indicator: true,
17		data: $form.serialize(),
18		block: true,
19		dataType: "json",
20		success: function(res){
21			$inputSign.remove();
22
23			if(res.result === 'ok')
24			{
25				$form.trigger('reset');
26				$msgs.html(res.msg);
27
28				ym(10029589, 'reachGoal', 'bankrotstvo');
29				gtag('event', 'click', {'event_category' : 'bankrotstvo'});
30
31				$("#modal-success").modal('show');
32			}
33			if(res.errors)
34			{
35				var errors_text = [];
36
37				for(var key in res.errors)
38				{
39					if(res.errors.hasOwnProperty(key))
40					{
41						var error = res.errors[key];
42
43						var $field = $('#' + error.code, $form);
44						if($field.length) $field.addClass('error');
45						else errors_text.push(error.msg);
46					}
47				}
48
49				if(errors_text.length > 0) $errors.html(errors_text.join('<br>')).show();
50			}
51		}
52	});
53});

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.