PageSourceSearch

https://shop.okraina.ru/local/templates/okraina_shops/components/b…/dialog.bonus.card.editing/script.js

js okraina.ru collected 2026-10-03 22:46:28 UTC 1,171 bytes, 64 lines download raw bytes

1function Okraina_CustomHtml_DialogBonusCardEditing(arParams){
2
3    this.container = null;
4    this.arParams = arParams;
5    this.loaded = false;
6    this.loading = false;
7    var _this = this;
8
9    /*
10     * Инициализация
11     */
12    this.Init = function(){
13
14        _this.container = $("#"+_this.arParams.id);
15
16        if(_this.arParams.show === "Y") {
17            _this.Open();
18        }
19
20
21    };
22
23    /*
24     * Открыть панель
25     */
26    this.Open = function(){
27
28        $(_this.container).trigger("show");
29
30        if(!_this.loaded){
31            _this.Load();
32        }
33    };
34
35    /*
36     * Загрузка контента
37     */
38    this.Load = function(){
39
40        if(_this.loading){
41            return;
42        }
43
44        _this.loading = true; 
45
46        $.ajax({
47            url: _this.arParams.ajaxUrl,
48            datatype: "html",
49            data: {},
50            success: function(data){
51                $(".dialog-body", _this.container).html(data);
52                _this.loading = false;
53                _this.loaded =true;
54            }
55        });
56    };
57
58
59    $(function(){
60        _this.Init();
61    });
62
63    return this;
64}

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.