PageSourceSearch

https://ete-children.ru/local/modules/palada.ete/assets/seo_detail/seo_detail.js

js ete-children.ru collected 2026-10-07 20:20:36 UTC 1,889 bytes, 46 lines download raw bytes

1
2BX.addCustomEvent('onFinalActionSKUInfo', function (eventdata) {
3    if (eventdata) {
4        let wrapper = eventdata.wrapper;
5        let objOffer = eventdata.offer;
6        let isSectionBlock = wrapper.hasClass('item_block');
7        let isFastView = wrapper.find('.fastview-product').length;
8        let isDetail = wrapper.hasClass('product-main');
9
10        if (isDetail) {
11            let iPropertyValues = eventdata?.offer?.IPROPERTY_VALUES;
12
13            /**
14             * Настройки -> Каталог
15             * Подставлять заголовок торгового предложения в название товара на детальной странице
16             * THEME.CHANGE_TITLE_ITEM_DETAIL
17             *
18             * @see /local/templates/aspro_max/js/select_offer_detail.js
19             * function SetTitleSKU
20             */
21            if(0){ //
22                if(iPropertyValues?.ELEMENT_PAGE_TITLE){
23                    let pagetitle = document.querySelector('#pagetitle');
24                    if(pagetitle){
25                        pagetitle.innerHTML = iPropertyValues.ELEMENT_PAGE_TITLE;
26                        pagetitle.setAttribute('data-title', iPropertyValues.ELEMENT_PAGE_TITLE);
27                    }
28                }
29                if(iPropertyValues?.ELEMENT_META_TITLE){
30                    let title = document.querySelector('head title');
31                    if(title){
32                        title.innerHTML = iPropertyValues.ELEMENT_META_TITLE;
33                    }
34                }
35            }
36
37            if(iPropertyValues?.ELEMENT_META_DESCRIPTION){
38                let description = document.querySelector('meta[name="description"]');
39                if(description){
40                    description.content = iPropertyValues.ELEMENT_META_DESCRIPTION;
41                }
42            }
43
44        }
45    }
46});

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.