1// Gestion des typeahead 2$(function () { 3 if ($.fn.typeahead) { 4 $(".typeahead").each(function () { 5 var ctrl = $(this); 6 ctrl.typeahead({ 7 autoselect: false, 8 onSelect: function (value) { 9 ctrl.val(value.text); 10 }, 11 matcher: function () { 12 return true; 13 }, 14 ajax: { 15 url: ctrl.data("typeahead-source"), 16 timeout: 500, 17 //displayField: "title", 18 triggerLength: 2, 19 method: "get", 20 loadingClass: "loading-circle", 21 } 22 }); 23 ctrl.on('click', ctrl.typeahead.bind(ctrl, 'lookup')); 24 }); 25 } 26});
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.