PageSourceSearch

https://ichehol.ru/bitrix/templates/aspro_max/js/searchtitle.js

js ichehol.ru collected 2026-10-06 15:25:32 UTC 1,367 bytes, 32 lines download raw bytes

1$(document).on('click', '.dropdown-select.searchtype .dropdown-select__list-link:not(.dropdown-select__list-link--current)', function(){
2    let $this = $(this);
3    let type = $this.data('type');
4    let name = type === 'all' ? BX.message('SEARCH_IN_SITE') : BX.message('SEARCH_IN_CATALOG');
5
6    BX.onCustomEvent("onCloseDropDown");
7    
8    $.cookie('searchtitle_type', type);
9
10    $this.closest('.dropdown-select').find('input[name=type]').val(type);
11
12    // remove already visible results
13    $('.title-search-result').hide().empty();
14
15    // fire new search request
16    BX.fireEvent($this.closest('.dropdown-select').find('input[name=type]')[0], 'change');    
17
18    $('.dropdown-select.searchtype').each(function(){
19        $(this).closest('form').attr('action', type === 'all' ? arAsproOptions.PAGES.SEARCH_PAGE_URL : arAsproOptions.PAGES.CATALOG_PAGE_URL);
20        $(this).find('.dropdown-select__title>span').text(name);
21        $(this).find('input[name=type]').val(type);
22
23        $(this).find('.dropdown-select__list-link').removeClass('dropdown-select__list-link--current').addClass('darken');
24        $(this).find('.dropdown-select__list-link[data-type=' + type + ']').addClass('dropdown-select__list-link--current').removeClass('darken');
25    });
26
27    try {
28        $this.closest('form').find('input[name=q]')[0].focus();
29    }
30    catch (e) {
31    }
32});

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.