1(function ($, Drupal, once) { 2 Drupal.behaviors.tomSelectInit = { 3 attach: function (context) { 4 const elements = once('tom-select-init', 'select', context); 5 const settings = { 6 search: false, 7 create: false, 8 controlInput: false, 9 searchField: [], 10 shouldOpenOnFocus: true, 11 allowEmptyOption: true, 12 closeAfterSelect: true, 13 highlight: false, 14 maxOptions: null 15 }; 16 if (!$('body').hasClass('title-special-operations-pst')) { 17 elements.forEach(function (el) { 18 new TomSelect(el, settings); 19 $('.ts-control').each(function() { 20 $(this).attr({ 21 'aria-label':$(this).attr('id').replace(/-+/g, ' '), 22 'title':$(this).attr('id').replace(/-+/g, ' ') 23 }); 24 }); 25 }); 26 } 27 } 28 }; 29})(jQuery, Drupal, once);
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.