1(function ($, Drupal, drupalSettings, once) { 2 Drupal.behaviors.findAnExpertJs = { 3 attach: function (context) { 4 if (context === document) { 5 const chosen_select = $(once('js_components', '.chosen-select', context)); 6 chosen_select.each(function () { 7 $(this).select2({ 8 width: "100%", // Ensures full width on smaller screens 9 minimumResultsForSearch: 10, // Adds search box only if options exceed 10 10 }); 11 }); 12 13 14 } 15 16 } 17 } 18})(jQuery, Drupal, drupalSettings, 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.