PageSourceSearch

https://www.promcrm.ru/bitrix/templates/prom_s1/components/bitrix/…/regions.select/.default/script.js

js promcrm.ru collected 2026-10-05 05:59:32 UTC 1,440 bytes, 47 lines download raw bytes

1(function () {
2    var prototype;
3
4    if (window.JCIntecRegionalityRegionsSelect)
5        return;
6
7    window.JCIntecRegionalityRegionsSelect = function (parameters) {
8        this.action = parameters.action;
9        this.site = parameters.site;
10    };
11
12    prototype = window.JCIntecRegionalityRegionsSelect.prototype;
13    prototype.select = function (region) {
14        if (!region)
15            return;
16
17        BX.ajax({
18            'url': this.action,
19            'method': 'POST',
20            'data': {
21                'site': this.site,
22                'region': region,
23                'url': window.location.href
24            },
25            'dataType': 'json',
26            'async': false,
27            'start': true,
28            'cache': false,
29            'onsuccess': function (data) {
30                if (!data)
31                    return;
32
33                if (data.status === 'success') {
34                    if (data.action === 'redirect')
35                        window.location = data.url;
36                } else if (data.status === 'error') {
37                    if (data.message)
38                        console.error(data.message);
39                }
40            },
41            'onfailure': function (data) {
42                console.error('Error occurred due request (intec.regionality:region.select).');
43                console.error(data);
44            }
45        })
46    };
47})();

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.