PageSourceSearch

https://dryclean.ru/local/templates/dryclean_new/js/classes/autocomplete.js?17816803991485

js dryclean.ru collected 2026-09-26 05:53:29 UTC 1,485 bytes, 44 lines download raw bytes

1// Плагин автокомплита адреса через yandex geocoder api
2
3jQuery.fn.SebekonAutocomplete = function(options) {
4
5    var settings = $.extend({
6        minLength: 5,
7        delay: 1500,
8        count: 10,
9        width: 100
10    }, options);
11
12    var _this = this,
13        parent = _this.parent('.input-block');
14    var methods = {
15        init: function() {
16            // Костыль, почему-то после первого выбора значения, событие на click для значений больше не работает
17            // потому переинициализиауем плагин после первого выбора
18            _this.autocomplete({
19                source: '/local/ajax/address_autocomplete.php?count=' + settings.count,
20                minLength: settings.minLength,
21                delay: settings.delay,
22                autoFocus: true,
23                appendTo: parent,
24
25                response: function(){
26                    _this.parents('.input-block').removeClass('ui-autocomplete-loading');
27                },
28                open: function(){
29                    _this.parents('.input-block').removeClass('ui-autocomplete-loading');
30                },
31
32                select: function( event, ui ){
33                    _this.autocomplete('destroy');
34                    methods.init();
35                }
36            });
37        }
38    };
39
40    methods.init();
41
42    return this;
43
44};

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.