1jQuery(document).ready(function (){ 2 3 /* 4 if( $("select[name='wpcf-bm-evt-lieu']").length && ( $("div").hasClass("bm_form") || $("form").hasClass("bm_edit_form") ) ){ 5 var $selecLieu = $("select[name='wpcf-bm-evt-lieu']"); 6 $selecLieu.removeAttr('multiple'); 7 $selecLieu.select2('destroy'); 8 $selecLieu.select2({ 9 ajax: { 10 url: ajaxurl, 11 data: function (params) { 12 var query = { 13 search: params.term, 14 action: 'lieu_references' 15 } 16 // Query parameters will be ?search=[term]&type=public 17 return query; 18 } 19 }, 20 processResults: function (data) { 21 // Transforms the top-level key of the response object from 'items' to 'results' 22 return { 23 results: data.results 24 }; 25 } 26 }); 27 }*/ 28 29});
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.