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.